]> granicus.if.org Git - fcron/commitdiff
bug fixed : lavged serial file used to run fcron into infinite loop
authorthib <thib>
Thu, 5 Oct 2000 15:22:19 +0000 (15:22 +0000)
committerthib <thib>
Thu, 5 Oct 2000 15:22:19 +0000 (15:22 +0000)
database.c

index ea49eb77f512c4b349b2be91c38e61ba85417497..3ed89939d34d8c95cd9437c77bcc7ddce9c52e0d 100644 (file)
@@ -22,7 +22,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: database.c,v 1.32 2000-10-05 15:02:06 thib Exp $ */
+ /* $Id: database.c,v 1.33 2000-10-05 15:22:19 thib Exp $ */
 
 #include "fcron.h"
 
@@ -787,8 +787,10 @@ check_lavg(time_t lim)
     while ( i < lavg_num ) {
        /* check if the line should be executed */
        if ( lavg_serial_running > 0 && 
-            is_serial(lavg_array[i].l_line->cl_option) )
+            is_serial(lavg_array[i].l_line->cl_option) ) {
+           i++;
            continue;
+       }
        if ( ( is_land(lavg_array[i].l_line->cl_option)
               && ( l_avg[0] < lavg_array[i].l_line->cl_lavg[0]
                    || lavg_array[i].l_line->cl_lavg[0] == 0 )