From: Thibault Godouet Date: Sun, 24 Jun 2007 21:58:46 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: ver3_0_4~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9eaa5b73ca0a2ecda1058ede3daa81454bed5c2e;p=thirdparty%2Ffcron.git *** empty log message *** --- diff --git a/configure.in b/configure.in index e885672..36dd5fb 100644 --- a/configure.in +++ b/configure.in @@ -9,7 +9,7 @@ AC_INIT(allow.c) AC_CONFIG_HEADER(config.h) AC_PREREQ(2.57) -vers="3.0.3" +vers="3.0.4" vers_quoted="\"$vers\"" AC_DEFINE_UNQUOTED(VERSION, $vers) AC_DEFINE_UNQUOTED(VERSION_QUOTED, $vers_quoted) diff --git a/doc/en/changes.sgml b/doc/en/changes.sgml index cb536c9..ff8c734 100644 --- a/doc/en/changes.sgml +++ b/doc/en/changes.sgml @@ -8,11 +8,24 @@ Foundation. A copy of the license is included in gfdl.sgml. --> - + Changes + + From version 3.0.3 to 3.0.4 + + Initialize the random number generator with some values specific to the machine so as two fcron started exactly at the same time on two different machines run their random jobs at different time. This is useful for clusters for instance. + + + Bug fix: in certain conditions, jobs could be executed outside their interval of execution when using option random on %-lines. + + + + + + From version 3.0.3-rc1 to 3.0.3 diff --git a/global.h b/global.h index cce89d1..1716673 100644 --- a/global.h +++ b/global.h @@ -21,7 +21,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: global.h,v 1.50 2007-06-03 17:51:50 thib Exp $ */ + /* $Id: global.h,v 1.51 2007-06-24 22:01:49 thib Exp $ */ /* @@ -203,7 +203,7 @@ typedef struct cl_t { time_t cl_nextexe; /* time and date of the next execution */ long int cl_timefreq; /* Run every n seconds */ unsigned short cl_remain; /* remaining until next execution */ - unsigned short cl_runfreq; /* Run once every n matches */ + unsigned short cl_runfreq; /* Run once every n matches(=1 for %-lines)*/ unsigned char cl_option[OPTION_SIZE]; /* line's option (see option.h) */ unsigned char cl_lavg[LAVG_SIZE];/*load averages needed (1,5,15 mins) */ unsigned char cl_numexe; /* entries in queues & running processes */ diff --git a/option.h b/option.h index 3c017a7..8076046 100644 --- a/option.h +++ b/option.h @@ -21,7 +21,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: option.h,v 1.25 2007-04-14 18:04:26 thib Exp $ */ + /* $Id: option.h,v 1.26 2007-06-24 22:03:16 thib Exp $ */ /* This has been inspired from bitstring(3) : here is the original copyright : */ @@ -80,7 +80,7 @@ 16 should mons field be ignored in goto_non_matching() ? 17 should dow field be ignored in goto_non_matching() ? 18 First freq is the freq (*ly) or the first field to take into account ? - 19 Freq (ie daily) is from middle to middle of interval (ie nightly) ? + 19 Freq (ie daily) is from middle to middle of period (ie nightly) ? 20 Should we remove a %-job from lavg queue if the interval is exceeded ? 21 Should user be mailed if a %-job has not run during a period ? 22 Should fcron log everything about this job or just errors ? @@ -358,8 +358,8 @@ /* - bit 19 : set to 1 : run once from mid-interval to mid-interval (i.e. nightly) - set to 0 : run once from begin to the end of interval (i.e. daily) + bit 19 : set to 1 : run once from mid-period to mid-period (i.e. nightly) + set to 0 : run once from begin to the end of period (i.e. daily) */ #define is_freq_mid(opt) \ (_bit_test(opt, 19))