From: Andrew Dolgov Date: Thu, 4 Oct 2007 05:44:13 +0000 (+0100) Subject: tweak daemon hang detection X-Git-Tag: 1.2.16~17 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9041f58b245ccdfb10a4e180b40d2881647cb5ab;p=tt-rss.git tweak daemon hang detection --- diff --git a/functions.php b/functions.php index 45c59d37..e218a6c2 100644 --- a/functions.php +++ b/functions.php @@ -2712,15 +2712,16 @@ print ""; - 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 ""; if ($stamp) { - if (time() - $stamp > 3600*3) { + $stamp_delta = time() - $stamp; + + if ($stamp_delta > 1800) { $stamp_check = 0; } else { $stamp_check = 1;