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

remove misleading comment and fix allignment problem in code

parent db848397
No related branches found
No related tags found
No related merge requests found
...@@ -888,7 +888,6 @@ static int _get_cpu_cnt(struct job_record *job_ptr, const int node_index, ...@@ -888,7 +888,6 @@ static int _get_cpu_cnt(struct job_record *job_ptr, const int node_index,
* IN: cr_type - resource type * IN: cr_type - resource type
* OUT: cpu_cnt - number of cpus that can be used by this job * OUT: cpu_cnt - number of cpus that can be used by this job
* IN: test_only - ignore allocated memory check * IN: test_only - ignore allocated memory check
* OUT: returns the length of the 2 arrays
*/ */
static void _get_res_usage(struct job_record *job_ptr, bitstr_t *node_map, static void _get_res_usage(struct job_record *job_ptr, bitstr_t *node_map,
bitstr_t *core_map, uint32_t cr_node_cnt, bitstr_t *core_map, uint32_t cr_node_cnt,
...@@ -2205,7 +2204,7 @@ alloc_job: ...@@ -2205,7 +2204,7 @@ alloc_job:
/* Set a reasonable value for the number of allocated CPUs. /* Set a reasonable value for the number of allocated CPUs.
* Without computing task distribution this is only a guess */ * Without computing task distribution this is only a guess */
job_ptr->total_cpus = MAX(job_ptr->details->min_cpus, job_ptr->total_cpus = MAX(job_ptr->details->min_cpus,
job_ptr->details->min_nodes); job_ptr->details->min_nodes);
} }
if ((error_code != SLURM_SUCCESS) || (mode != SELECT_MODE_RUN_NOW)) { if ((error_code != SLURM_SUCCESS) || (mode != SELECT_MODE_RUN_NOW)) {
FREE_NULL_BITMAP(free_cores); FREE_NULL_BITMAP(free_cores);
......
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