From 78ea1de08ce641e1125063e1a13a230a075e424f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 12 Feb 2006 09:04:27 +0100 Subject: skip counters output when number of unread articles at backend equals frontend --- update_daemon.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'update_daemon.php') 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); -- cgit v1.2.3