fix hanged daemon notification (2)

This commit is contained in:
Andrew Dolgov 2007-09-30 04:13:27 +01:00
parent f6854e447b
commit fbae93d8b9

View file

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