Skip to content
Snippets Groups Projects
Commit 51a192f8 authored by James's avatar James Committed by jette
Browse files

Correction for MaxCPUsPerNode logic

This is a correction to commit 308b7432
parent 9c32bd41
No related branches found
No related tags found
No related merge requests found
...@@ -290,7 +290,7 @@ static uint16_t _allocate_sc(struct job_record *job_ptr, bitstr_t *core_map, ...@@ -290,7 +290,7 @@ static uint16_t _allocate_sc(struct job_record *job_ptr, bitstr_t *core_map,
} }
free_cpu_count += free_cores[i] * threads_per_core; free_cpu_count += free_cores[i] * threads_per_core;
if (used_cpu_array[i]) if (used_cpu_array[i])
used_cpu_count = used_cores[i] * threads_per_core; used_cpu_count += used_cores[i] * threads_per_core;
} }
xfree(used_cores); xfree(used_cores);
xfree(used_cpu_array); xfree(used_cpu_array);
......
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