Skip to content
Snippets Groups Projects
Commit 42e03f41 authored by Brian Christiansen's avatar Brian Christiansen
Browse files

Fix build warning.

parent 9c158066
No related branches found
No related tags found
No related merge requests found
......@@ -147,9 +147,9 @@ uint16_t _can_job_run_on_node(struct job_record *job_ptr, bitstr_t *core_map,
if (gres_cpus != NO_VAL)
gres_cpus *= cpus_per_core;
if ((job_ptr->details) &&
(gres_cpus < job_ptr->details->ntasks_per_node) ||
((job_ptr->details->cpus_per_task > 1) &&
(gres_cpus < job_ptr->details->cpus_per_task)))
((gres_cpus < job_ptr->details->ntasks_per_node) ||
((job_ptr->details->cpus_per_task > 1) &&
(gres_cpus < job_ptr->details->cpus_per_task))))
gres_cpus = 0;
if (gres_cpus < cpus)
cpus = gres_cpus;
......
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