diff options
author | Simon Rettberg | 2021-03-03 13:45:41 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-03-03 13:45:41 +0100 |
commit | fb853d2f0d3bc501619b75a66eadebeb3fa69901 (patch) | |
tree | 42ea13ad337df9ae72a8fd2f545d652071023fbe | |
parent | [serversetup-bwlp-ipxe] Fix invisible title in location menu selector (diff) | |
download | slx-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.php | 2 |
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 |