summaryrefslogtreecommitdiffstats
path: root/modules-available
diff options
context:
space:
mode:
authorSimon Rettberg2023-09-21 10:13:32 +0200
committerSimon Rettberg2023-09-21 10:13:32 +0200
commit21ffe3c6f581d253ae202c1a2fe3ea82249a6c5b (patch)
treef1a97c69764d5b931cd62ef3ceb35a10c970f360 /modules-available
parent[eventlog] Add example filter rules (diff)
downloadslx-admin-21ffe3c6f581d253ae202c1a2fe3ea82249a6c5b.tar.gz
slx-admin-21ffe3c6f581d253ae202c1a2fe3ea82249a6c5b.tar.xz
slx-admin-21ffe3c6f581d253ae202c1a2fe3ea82249a6c5b.zip
[rebootcontrol] Make subnet deletion timoeut match that of machines
Closes #3941
Diffstat (limited to 'modules-available')
-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 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