cron.php
changeset 541 acb7e23b6ffa
parent 536 218a627eb53e
child 542 5841df0ab575
--- a/cron.php	Sat Apr 26 17:25:28 2008 -0400
+++ b/cron.php	Sun May 04 21:57:48 2008 -0400
@@ -29,8 +29,9 @@
 
 foreach ( $cron_tasks as $interval => $tasks )
 {
+  $interval = doubleval($interval);
   $last_run = intval(getConfig("cron_lastrun_ivl_$interval"));
-  $last_run_threshold = time() - ( 3600 * $interval );
+  $last_run_threshold = doubleval(time()) - ( 3600.0 * $interval );
   if ( $last_run_threshold >= $last_run )
   {
     foreach ( $tasks as $task )