summaryrefslogtreecommitdiff
path: root/update_daemon.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-02-12 08:51:17 +0100
committerAndrew Dolgov <[email protected]>2006-02-12 08:51:17 +0100
commit1011b66a024442bb4a78c1a31e26419dd60dd051 (patch)
tree195ab3ad9b8e6f680ca1ec7bb5afdd044f119573 /update_daemon.php
parentc6784aea9c56409e3adc96c2bce0760c6740aac4 (diff)
daemon output tweaks
Diffstat (limited to 'update_daemon.php')
-rw-r--r--update_daemon.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/update_daemon.php b/update_daemon.php
index b9d5d571a..d220266fc 100644
--- a/update_daemon.php
+++ b/update_daemon.php
@@ -68,10 +68,7 @@
while ($line = db_fetch_assoc($result)) {
- print "Feed: " . $line["feed_url"] . ": ";
-
$upd_intl = $line["update_interval"];
-
$user_id = $line["owner_uid"];
if (!$upd_intl || $upd_intl == 0) {
@@ -79,12 +76,14 @@
}
if ($upd_intl < 0) {
- print "Updates disabled.\n";
+# print "Updates disabled.\n";
continue;
}
-# printf("%d ? %d\n", time() - strtotime($line["last_updated"]) > $upd_intl*60,
-# $upd_intl*60);
+ print "Feed: " . $line["feed_url"] . ": ";
+
+ printf("(%d ? %d) ", time() - strtotime($line["last_updated"]),
+ $upd_intl*60);
if (!$line["last_updated"] ||
time() - strtotime($line["last_updated"]) > ($upd_intl * 60)) {