Index: lib/statslib.php
===================================================================
--- /Users/marknielsen/Sites/cisco/lib/statslib.php	(revision 9267)
+++ /Users/marknielsen/Sites/cisco/lib/statslib.php	(working copy)
@@ -99,7 +99,7 @@
         mtrace("...preventing stats to run, more than 4 hours since scheduled time.");
         return false;
     } else {
-        set_config('statslastexecution', time()); /// Grab this execution as last one
+        set_config('statslastexecution', $scheduledtime); /// Grab this execution as last one
     }
 
     $nextmidnight = stats_get_next_day_start($timestart);
