From: Andrew Dolgov Date: Fri, 8 Feb 2008 03:45:31 +0000 (+0100) Subject: daemon: define MAX_JOBS below config.php X-Git-Tag: 1.2.20~42 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=98f70418371e18ead23cb526396a3539d2337e48;p=tt-rss.git daemon: define MAX_JOBS below config.php --- diff --git a/update_daemon2.php b/update_daemon2.php index 1b4007ac..be652777 100644 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -12,8 +12,6 @@ define('SIMPLEPIE_CACHE_DIR', '/var/tmp/simplepie-ttrss-cache-daemon'); define('DISABLE_SESSIONS', true); - define('MAX_JOBS', 2); - require_once "version.php"; if (strpos(VERSION, ".99") !== false || getenv('DAEMON_XDEBUG')) { @@ -25,6 +23,8 @@ require_once "sanity_check.php"; require_once "config.php"; + define('MAX_JOBS', 2); + define('SPAWN_INTERVAL', DAEMON_SLEEP_INTERVAL); if (!ENABLE_UPDATE_DAEMON) {