diff options
author | Andrew Dolgov <[email protected]> | 2006-02-12 09:04:27 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-02-12 09:04:27 +0100 |
commit | 78ea1de08ce641e1125063e1a13a230a075e424f (patch) | |
tree | 1b940d1e4780dc7952da12c4ef8e46db46569773 /update_daemon.php | |
parent | 1011b66a024442bb4a78c1a31e26419dd60dd051 (diff) |
skip counters output when number of unread articles at backend equals frontend
Diffstat (limited to 'update_daemon.php')
-rw-r--r-- | update_daemon.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/update_daemon.php b/update_daemon.php index d220266fc..b780c7f7e 100644 --- a/update_daemon.php +++ b/update_daemon.php @@ -5,7 +5,6 @@ declare(ticks = 1); - define('SLEEP_INTERVAL', 60); // seconds between update runs define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache-daemon'); define('DISABLE_SESSIONS', true); @@ -82,8 +81,8 @@ print "Feed: " . $line["feed_url"] . ": "; - printf("(%d ? %d) ", time() - strtotime($line["last_updated"]), - $upd_intl*60); + printf("(%d/%d, %d) ", time() - strtotime($line["last_updated"]), + $upd_intl*60, $owner_uid); if (!$line["last_updated"] || time() - strtotime($line["last_updated"]) > ($upd_intl * 60)) { @@ -95,9 +94,9 @@ } } - print "Sleeping for " . SLEEP_INTERVAL . " seconds...\n"; + print "Sleeping for " . DAEMON_SLEEP_INTERVAL . " seconds...\n"; - sleep(SLEEP_INTERVAL); + sleep(DAEMON_SLEEP_INTERVAL); } db_close($link); |