fix hanged daemon notification (2)

This commit is contained in:
Andrew Dolgov 2007-09-30 04:13:27 +01:00
parent f6854e447b
commit fbae93d8b9
1 changed files with 4 additions and 1 deletions

View File

@ -2706,8 +2706,11 @@
$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 > 86400) {
if (time() - $stamp > 3600*3) {
$stamp_check = 0;
} else {
$stamp_check = 1;