Skip to content
Snippets Groups Projects
Commit c9af48ca authored by Moe Jette's avatar Moe Jette
Browse files

Tweak test for sufficient nodes.

parent 34fdeedf
No related branches found
No related tags found
No related merge requests found
...@@ -422,8 +422,9 @@ extern int select_p_job_test(struct job_record *job_ptr, bitstr_t *bitmap, ...@@ -422,8 +422,9 @@ extern int select_p_job_test(struct job_record *job_ptr, bitstr_t *bitmap,
for (i = 0; i < consec_index; i++) { for (i = 0; i < consec_index; i++) {
if (consec_nodes[i] == 0) if (consec_nodes[i] == 0)
continue; continue;
sufficient = ((consec_nodes[i] >= rem_nodes) sufficient = (consec_cpus[i] >= rem_cpus)
&& (consec_cpus[i] >= rem_cpus)); && _enough_nodes(consec_nodes[i], rem_nodes,
min_nodes, req_nodes);
/* if first possibility OR */ /* if first possibility OR */
/* contains required nodes OR */ /* contains required nodes OR */
......
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