From fb853d2f0d3bc501619b75a66eadebeb3fa69901 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 3 Mar 2021 13:45:41 +0100 Subject: [rebootcontrol] Increase subnet delete timeout --- 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 c80a87b1..3651c779 100644 --- a/modules-available/rebootcontrol/hooks/cron.inc.php +++ b/modules-available/rebootcontrol/hooks/cron.inc.php @@ -170,7 +170,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('-180 days'); +$cutoff = strtotime('-360 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