diff --git a/poller_maintenance.php b/poller_maintenance.php index 5b2e66b33a..f69b0a2946 100644 --- a/poller_maintenance.php +++ b/poller_maintenance.php @@ -304,8 +304,8 @@ function rrdfile_purge($force) { set_config_option('rrdcleaner_last_run_time', time()); $poller_end = microtime(true); - $string = sprintf('RRDMAINT STATS: Time:%4.4f Purged:%s Archived:%s', ($poller_end - $poller_start), $purged, $archived); - + set_config_option('rrdcleaner_last_run_time', time()); + $string = sprintf('RRDMAINT STATS: Time:%4.4f Purged:%s Archived:%s', ($poller_end - $poller_start), $purged, $archived); cacti_log($string, true, 'SYSTEM'); } }