diff --git a/src/plugins/select/cons_res/job_test.c b/src/plugins/select/cons_res/job_test.c index f6602eb20612e49ff5cfa8ad171979f21391da85..5392363841e7109470415e54a1543759b8c9ad3c 100644 --- a/src/plugins/select/cons_res/job_test.c +++ b/src/plugins/select/cons_res/job_test.c @@ -1713,7 +1713,7 @@ alloc_job: * For cons_res, all available logical processors will be allocated on * each allocated node in order to accommodate the overcommit request. */ - if (job_ptr->details->overcommit) + if (job_ptr->details->overcommit && job_ptr->details->num_tasks) job_res->nprocs = MIN(total_cpus, job_ptr->details->num_tasks); debug3("cons_res: cr_job_test: job %u nprocs %u cbits %u/%u nbits %u",