} else if (have_option('--threads')) {
$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();