mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 09:55:56 +00:00
tweak daemon hang detection
This commit is contained in:
@@ -2712,15 +2712,16 @@
|
|||||||
print "<param key=\"daemon_is_running\" value=\"".
|
print "<param key=\"daemon_is_running\" value=\"".
|
||||||
sprintf("%d", file_is_locked("update_daemon.lock")) . "\"/>";
|
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 = (int)read_stampfile("update_daemon.stamp");
|
||||||
|
|
||||||
// $stamp_delta = time() - $stamp;
|
|
||||||
// print "<param key=\"daemon_stamp_delta\" value=\"$stamp_delta\"/>";
|
// print "<param key=\"daemon_stamp_delta\" value=\"$stamp_delta\"/>";
|
||||||
|
|
||||||
if ($stamp) {
|
if ($stamp) {
|
||||||
if (time() - $stamp > 3600*3) {
|
$stamp_delta = time() - $stamp;
|
||||||
|
|
||||||
|
if ($stamp_delta > 1800) {
|
||||||
$stamp_check = 0;
|
$stamp_check = 0;
|
||||||
} else {
|
} else {
|
||||||
$stamp_check = 1;
|
$stamp_check = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user