https://bugzilla.novell.com/show_bug.cgi?id=346150
User mmarek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346150#c2
--- Comment #2 from Michal Marek 2007-12-05 06:46:24 MST ---
IMHO it's the last checkin that causes problems:
NOW=`date -u +%s`
for i in `find $SPOOL -type f`
do
FILEDATE=`date -u -r $i +%s`
# allow for up to one hour in the future because of summer/wintertime
- if [ `expr $FILEDATE - $NOW` -gt 3600 ]
+ if [ $((NOW - FILEDATE)) -gt 3600 ]
then
rm $i
fi
The purpose of the code is to remove files that are more than one hour in the
future (FILETIME > NOW + 1h), but now it removes all lastrun files that are
*older* than one hour (NOW > FILETIME + 1h), meaning that the cron.daily file
will be removed after one 60 or 75 minutes (depending on timing) and cron.daily
will be re-run 15 minutes after that. As can be seen in comment 0, cron.daily
is indeed run every 75 or 90 minutes.
-> Please revert the last change :)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.