Skip to content
Snippets Groups Projects
Commit 21dc7c1c authored by Morris Jette's avatar Morris Jette
Browse files

Just rename a variable

No change in logic, just rename a variable for better clarity.
parent ee3844aa
No related branches found
No related tags found
No related merge requests found
...@@ -1402,13 +1402,14 @@ _pick_step_nodes (struct job_record *job_ptr, ...@@ -1402,13 +1402,14 @@ _pick_step_nodes (struct job_record *job_ptr,
cpus_needed, cpus_needed,
usable_cpu_cnt); usable_cpu_cnt);
if (node_tmp == NULL) { if (node_tmp == NULL) {
int avail_node_cnt = bit_set_count(nodes_avail); /* Count of nodes already picked for step */
avail_node_cnt += nodes_picked_cnt; int pick_node_cnt = bit_set_count(nodes_avail);
if (step_spec->max_nodes <= avail_node_cnt) { pick_node_cnt += nodes_picked_cnt;
if (step_spec->max_nodes <= pick_node_cnt) {
*return_code = *return_code =
ESLURM_TOO_MANY_REQUESTED_CPUS; ESLURM_TOO_MANY_REQUESTED_CPUS;
} else if (step_spec->min_nodes <= } else if (step_spec->min_nodes <=
(avail_node_cnt+mem_blocked_nodes)) { (pick_node_cnt+mem_blocked_nodes)) {
*return_code = ESLURM_NODES_BUSY; *return_code = ESLURM_NODES_BUSY;
} else if (!bit_super_set(job_ptr->node_bitmap, } else if (!bit_super_set(job_ptr->node_bitmap,
up_node_bitmap)) { up_node_bitmap)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment