X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cron.php;h=337f96aefa36ab260d964674c449eaf09bc86791;hb=ed41335d63e71a11d30e92f4367106e9398adf9d;hp=19384df4000e56a72aac68a74268cb61e5276c40;hpb=29d6481a7dc9e1538be50a942e4891db17467ec4;p=timetracker.git diff --git a/cron.php b/cron.php index 19384df4..337f96ae 100644 --- a/cron.php +++ b/cron.php @@ -101,7 +101,7 @@ while ($val = $res->fetchRow()) { } // Calculate next execution time. - $next = tdCron::getNextOccurrence($val['cron_spec'], $now + 60); // +60 sec is here to get us correct $next when $now is close to existing "next"./// + $next = tdCron::getNextOccurrence($val['cron_spec'], $now + 60); // +60 sec is here to get us correct $next when $now is close to existing "next". // This is because the accuracy of tdcron class appears to be 1 minute. // Update last and next values in tt_cron. $sql = "update tt_cron set last = $now, next = $next where id = ".$val['id'];