From 8ee471c8688be46edec6c22d7035246140dbaa0e Mon Sep 17 00:00:00 2001 From: Zankaria Date: Sat, 30 Aug 2025 21:58:43 +0200 Subject: [PATCH] maintenance.php: fix deleted count couting --- tools/maintenance.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/maintenance.php b/tools/maintenance.php index 53fd30b0..31a89d2f 100644 --- a/tools/maintenance.php +++ b/tools/maintenance.php @@ -46,7 +46,7 @@ if ($config['cache']['enabled'] === 'fs') { $delta = microtime(true) - $start; echo "Deleted $deleted_count expired filesystem cache items in $delta seconds!\n"; $time_tot += $delta; - $deleted_tot = $deleted_count; + $deleted_tot += $deleted_count; } echo "Clearing old search log...\n"; @@ -55,7 +55,7 @@ $start = microtime(true); $deleted_count = $search_queries->purgeExpired(); $delta = microtime(true) - $start; $time_tot += $delta; -$deleted_tot = $deleted_count; +$deleted_tot += $deleted_count; $time_tot = number_format((float)$time_tot, 4, '.', ''); modLog("Deleted $deleted_tot expired entries in {$time_tot}s with maintenance tool");