diff --git a/src/plugins/select/cons_res/dist_tasks.c b/src/plugins/select/cons_res/dist_tasks.c
index 7c4c04fe5f4f7264a67b0bbf826e631e1047028c..484a0e26f78a8427a99232a83ffc115675d3b571 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