From 21ffe3c6f581d253ae202c1a2fe3ea82249a6c5b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 21 Sep 2023 10:13:32 +0200 Subject: [rebootcontrol] Make subnet deletion timoeut match that of machines Closes #3941 --- modules-available/rebootcontrol/hooks/cron.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules-available/rebootcontrol/hooks/cron.inc.php b/modules-available/rebootcontrol/hooks/cron.inc.php index 0d7ff6ab..cdecc31b 100644 --- a/modules-available/rebootcontrol/hooks/cron.inc.php +++ b/modules-available/rebootcontrol/hooks/cron.inc.php @@ -150,7 +150,7 @@ function resultToTime($result) */ // First, cleanup: delete orphaned subnets that don't exist anymore, or don't have any clients using our server -$cutoff = strtotime('-360 days'); +$cutoff = strtotime('-720 days'); Database::exec('DELETE FROM reboot_subnet WHERE fixed = 0 AND lastseen < :cutoff', ['cutoff' => $cutoff]); // Get machines running, group by subnet -- cgit v1.2.3-55-g7522