diff options
author | Andrew Dolgov <[email protected]> | 2007-10-04 06:44:13 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-10-04 06:44:13 +0100 |
commit | 9041f58b245ccdfb10a4e180b40d2881647cb5ab (patch) | |
tree | db6942befecf9ae4b5a276297b974aa8071d62d9 | |
parent | 1f3335dcde535ddc0bcfb7fbcae4bf779df0d7bb (diff) |
tweak daemon hang detection
-rw-r--r-- | functions.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/functions.php b/functions.php index 45c59d37e..e218a6c28 100644 --- a/functions.php +++ b/functions.php @@ -2712,15 +2712,16 @@ print "<param key=\"daemon_is_running\" value=\"". sprintf("%d", file_is_locked("update_daemon.lock")) . "\"/>"; - if (time() - $_SESSION["daemon_stamp_check"] > 600) { + if (time() - $_SESSION["daemon_stamp_check"] > 30) { $stamp = (int)read_stampfile("update_daemon.stamp"); -// $stamp_delta = time() - $stamp; // print "<param key=\"daemon_stamp_delta\" value=\"$stamp_delta\"/>"; if ($stamp) { - if (time() - $stamp > 3600*3) { + $stamp_delta = time() - $stamp; + + if ($stamp_delta > 1800) { $stamp_check = 0; } else { $stamp_check = 1; |