summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-30 16:23:34 +0400
committerAndrew Dolgov <[email protected]>2013-03-30 16:25:10 +0400
commit8292d05b7c9723bc91ccdf92f6acc5e46f58ce6c (patch)
treef3ce90e8a0c36df0c58a80be058df93c65a0936f /include
parent17e74b21cf7dcb6d57c44b3cbf5e4c330f5f2c17 (diff)
daemon: show feeds/minute stats
Diffstat (limited to 'include')
-rw-r--r--include/rssfuncs.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 49d9e6009..01a11da6b 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -147,6 +147,8 @@
expire_cached_files($debug);
expire_lock_files($debug);
+ $nf = 0;
+
// For each feed, we call the feed update function.
foreach ($feeds_to_update as $feed) {
if($debug) _debug("Base feed: $feed");
@@ -167,6 +169,7 @@
while ($tline = db_fetch_assoc($tmp_result)) {
if($debug) _debug(" => " . $tline["last_updated"] . ", " . $tline["id"]);
update_rss_feed($link, $tline["id"], true);
+ ++$nf;
}
}
}
@@ -176,6 +179,8 @@
// Send feed digests by email if needed.
send_headlines_digests($link, $debug);
+ return $nf;
+
} // function update_daemon_common
// ignore_daemon is not used