mirror of https://tt-rss.org/git/tt-rss.git
add some timing information to update_daemon_common
This commit is contained in:
parent
d5e490952a
commit
2d9c568439
|
@ -169,6 +169,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$nf = 0;
|
$nf = 0;
|
||||||
|
$bstarted = microtime(true);
|
||||||
|
|
||||||
// For each feed, we call the feed update function.
|
// For each feed, we call the feed update function.
|
||||||
foreach ($feeds_to_update as $feed) {
|
foreach ($feeds_to_update as $feed) {
|
||||||
|
@ -196,13 +197,22 @@
|
||||||
while ($tline = db_fetch_assoc($tmp_result)) {
|
while ($tline = db_fetch_assoc($tmp_result)) {
|
||||||
if($debug) _debug(" => " . $tline["last_updated"] . ", " . $tline["id"] . " " . $tline["owner_uid"]);
|
if($debug) _debug(" => " . $tline["last_updated"] . ", " . $tline["id"] . " " . $tline["owner_uid"]);
|
||||||
|
|
||||||
|
$fstarted = microtime(true);
|
||||||
$rss = update_rss_feed($tline["id"], true, false);
|
$rss = update_rss_feed($tline["id"], true, false);
|
||||||
_debug_suppress(false);
|
_debug_suppress(false);
|
||||||
|
|
||||||
|
_debug(sprintf(" %.4f (sec)", microtime(true) - $fstarted));
|
||||||
|
|
||||||
++$nf;
|
++$nf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($nf > 0) {
|
||||||
|
_debug(sprintf("Processed %d feeds in %.4f (sec), %.4f (sec/feed avg)", $nf,
|
||||||
|
microtime(true) - $bstarted, (microtime(true) - $bstarted) / $nf));
|
||||||
|
}
|
||||||
|
|
||||||
require_once "digest.php";
|
require_once "digest.php";
|
||||||
|
|
||||||
// Send feed digests by email if needed.
|
// Send feed digests by email if needed.
|
||||||
|
|
Loading…
Reference in New Issue