only use N jobs instead of N + 1 when not explicit (where N is number of CPUs)

master
Daniel Kolesa 2015-09-27 18:33:28 +01:00
parent 2f5a95327b
commit faabe418b2
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ int main(int argc, char **argv) {
return ob_print_help(argv[0], ostd::out, 0);
case 'j': {
int val = atoi(optarg);
if (!val) val = ncpus + 1;
if (!val) val = ncpus;
os.jobs = ostd::max(1, val);
break;
}