]> git.wh0rd.org - tt-rss.git/commitdiff
daemon: define MAX_JOBS below config.php
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 8 Feb 2008 03:45:31 +0000 (04:45 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 8 Feb 2008 03:45:31 +0000 (04:45 +0100)
update_daemon2.php

index 1b4007ac8c15b5b7c2ac150901a93b027c717889..be652777e28b792bfb48957e6c9b2d2be553c8c6 100644 (file)
@@ -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) {