From: abjectio Date: Wed, 10 Feb 2016 23:24:06 +0000 (+0100) Subject: Enable configuration option for number of queuedaemon threads X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=70d85c58e277b53272520f54a4e6a2c0a75f121c;p=quix0rs-gnu-social.git Enable configuration option for number of queuedaemon threads --- diff --git a/scripts/queuedaemon.php b/scripts/queuedaemon.php index 582a3dd888..efc1e04e9e 100755 --- a/scripts/queuedaemon.php +++ b/scripts/queuedaemon.php @@ -169,6 +169,9 @@ if (have_option('t')) { $threads = intval(get_option_value('--threads')); } else { $threads = 0; + //If there is no argument for number of threads + //Try reading a config option for the number + $threads = common_config('queue','threads'); } if (!$threads) { $threads = getProcessorCount();