From 4e33296deef9f4d51d3ce6670aaa6e8ee2bb8172 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 24 May 2022 14:10:27 +0200 Subject: [rebootcontrol] Run reachability checks a little more often --- modules-available/rebootcontrol/hooks/cron.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules-available/rebootcontrol') diff --git a/modules-available/rebootcontrol/hooks/cron.inc.php b/modules-available/rebootcontrol/hooks/cron.inc.php index c10e8626..0d7ff6ab 100644 --- a/modules-available/rebootcontrol/hooks/cron.inc.php +++ b/modules-available/rebootcontrol/hooks/cron.inc.php @@ -16,7 +16,7 @@ Scheduler::cron(); /* * Client reachability test -- can be disabled */ -if (mt_rand(1, 2) !== 1 || Property::get(RebootControl::KEY_AUTOSCAN_DISABLED)) +if (Property::get(RebootControl::KEY_AUTOSCAN_DISABLED)) return; class Stuff @@ -140,7 +140,7 @@ function resultToTime($result) $next = 86400 * 7; // a week } else { // Test finished, reachable - $next = 86400 * 30; // a month + $next = 86400 * 14; // two weeks } return time() + round($next * mt_rand(90, 133) / 100); } -- cgit v1.2.3-55-g7522