diff --git a/src/plugins/select/cons_res/dist_tasks.c b/src/plugins/select/cons_res/dist_tasks.c index 7046a3757cf5de743fa5bbdf20af96ffcaa7d93e..f8b23adc2c60d86aac608320cf7466f6037d7669 100644 --- a/src/plugins/select/cons_res/dist_tasks.c +++ b/src/plugins/select/cons_res/dist_tasks.c @@ -85,7 +85,7 @@ static int _compute_c_b_task_dist(struct job_record *job_ptr) if (job_ptr->details->ntasks_per_node == 0) maxtasks = maxtasks / job_ptr->details->cpus_per_task; else - maxtasks = job_ptr->details->ntasks_per_node; + maxtasks = job_ptr->details->ntasks_per_node * job_res->nhosts; } /* Safe guard if the user didn't specified a lower number of