summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2021-03-03 13:45:41 +0100
committerSimon Rettberg2021-03-03 13:45:41 +0100
commitfb853d2f0d3bc501619b75a66eadebeb3fa69901 (patch)
tree42ea13ad337df9ae72a8fd2f545d652071023fbe
parent[serversetup-bwlp-ipxe] Fix invisible title in location menu selector (diff)
downloadslx-admin-fb853d2f0d3bc501619b75a66eadebeb3fa69901.tar.gz
slx-admin-fb853d2f0d3bc501619b75a66eadebeb3fa69901.tar.xz
slx-admin-fb853d2f0d3bc501619b75a66eadebeb3fa69901.zip
[rebootcontrol] Increase subnet delete timeout
-rw-r--r--modules-available/rebootcontrol/hooks/cron.inc.php2
1 files changed, 1 insertions, 1 deletions
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