1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:35:55 +00:00

updaterandomfeed: use max_execution_time parameter

This commit is contained in:
Andrew Dolgov
2013-01-22 20:07:34 +04:00
parent 8b83bf5fa1
commit 6b1a4ecd41
4 changed files with 9 additions and 4 deletions

View File

@@ -699,7 +699,7 @@ class RPC extends Handler_Protected {
while ($line = db_fetch_assoc($result)) {
$feed_id = $line["id"];
if (time() - $tstart < 30) {
if (time() - $tstart < ini_get("max_execution_time") * 0.7) {
update_rss_feed($this->link, $feed_id, true);
++$num_updated;
} else {