From: Thibault Godouet Date: Fri, 1 Jun 2001 11:34:58 +0000 (+0000) Subject: bug corrected : if a job was running, it couldn't be added to a serior a lavg queue X-Git-Tag: ver2_9_4~329 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9fb93ab567f5d6e5739f3811360b9ae6e0bd70b;p=thirdparty%2Ffcron.git bug corrected : if a job was running, it couldn't be added to a serior a lavg queue --- diff --git a/database.c b/database.c index 63134ba..28e219e 100644 --- a/database.c +++ b/database.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: database.c,v 1.53 2001-05-29 19:32:37 thib Exp $ */ + /* $Id: database.c,v 1.54 2001-06-01 11:34:58 thib Exp $ */ #include "fcron.h" #include "database.h" @@ -233,7 +233,7 @@ add_serial_job(CL *line) /* check if the line is already in the serial queue */ if ( (is_serial_sev(line->cl_option) && line->cl_numexe >= UCHAR_MAX) || - line->cl_numexe > 0) { + (! is_serial_sev(line->cl_option) &&line->cl_numexe > 0) ) { debug("already in serial queue %s", line->cl_shell); return; } @@ -289,8 +289,8 @@ add_lavg_job(CL *line) { /* check if the line is already in the lavg queue */ - if ( (is_lavg_sev(line->cl_option) && line->cl_numexe >= UCHAR_MAX) - || line->cl_numexe > 0 ) { + if ( (is_lavg_sev(line->cl_option) && line->cl_numexe >= UCHAR_MAX) || + (! is_lavg_sev(line->cl_option) && line->cl_numexe > 0 ) ) { debug("already in lavg queue %s", line->cl_shell); return; }