]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Enable configuration option for number of queuedaemon threads
authorabjectio <abjectio@kollektivet0x242.no>
Wed, 10 Feb 2016 23:24:06 +0000 (00:24 +0100)
committerabjectio <abjectio@kollektivet0x242.no>
Wed, 10 Feb 2016 23:24:06 +0000 (00:24 +0100)
scripts/queuedaemon.php

index 582a3dd888f825ed0ff398a77629fffab9bf9628..efc1e04e9e62c2ac806aef49f11f7218a5b191b0 100755 (executable)
@@ -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();