daemon: rate limit in-between feed updates
This commit is contained in:
parent
78ea1de08c
commit
13def21952
|
@ -89,6 +89,7 @@
|
||||||
|
|
||||||
print "Updating...\n";
|
print "Updating...\n";
|
||||||
update_rss_feed($link, $line["feed_url"], $line["id"], true);
|
update_rss_feed($link, $line["feed_url"], $line["id"], true);
|
||||||
|
sleep(3); // prevent flood (FIXME make this an option?)
|
||||||
} else {
|
} else {
|
||||||
print "Update not needed.\n";
|
print "Update not needed.\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue