set DAEMON_FEED_LIMIT to 50 by default and use it consistently between forking daemon and any other update methods

This commit is contained in:
Andrew Dolgov
2024-06-18 21:54:22 +03:00
parent db3e67b3fe
commit df8403be08
2 changed files with 2 additions and 2 deletions

View File

@@ -238,7 +238,7 @@ class Config {
Config::FILE_FETCH_TIMEOUT => [ 45, Config::T_INT ],
Config::FILE_FETCH_CONNECT_TIMEOUT => [ 15, Config::T_INT ],
Config::DAEMON_UPDATE_LOGIN_LIMIT => [ 30, Config::T_INT ],
Config::DAEMON_FEED_LIMIT => [ 500, Config::T_INT ],
Config::DAEMON_FEED_LIMIT => [ 50, Config::T_INT ],
Config::DAEMON_SLEEP_INTERVAL => [ 120, Config::T_INT ],
Config::MAX_CACHE_FILE_SIZE => [ 64*1024*1024, Config::T_INT ],
Config::MAX_DOWNLOAD_FILE_SIZE => [ 16*1024*1024, Config::T_INT ],

View File

@@ -253,7 +253,7 @@
exit(1);
}
RSSUtils::update_daemon_common(isset($options["pidlock"]) ? 50 : Config::get(Config::DAEMON_FEED_LIMIT), $options);
RSSUtils::update_daemon_common(Config::get(Config::DAEMON_FEED_LIMIT), $options);
if (!isset($options["pidlock"]) || $options["task"] == "0")
RSSUtils::housekeeping_common();