X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/29d6481a7dc9e1538be50a942e4891db17467ec4..HEAD:/cron.php 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'];