Enable configuration option for number of queuedaemon threads

This commit is contained in:
abjectio 2016-02-11 00:24:06 +01:00
parent b9d35659c8
commit 70d85c58e2

View File

@ -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();