From e9a2f83455670b12cbcc24850113ef62c425152d Mon Sep 17 00:00:00 2001 From: Petr Macek Date: Thu, 7 Sep 2023 01:40:06 +0200 Subject: [PATCH] Last run date for reindex, cleaner, ... (#5478) * add last_run date for reindex, rrdcleaner, ... * change to timestamp --- poller_maintenance.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); } }