Skip to content
Snippets Groups Projects
Commit 1cee0d58 authored by Nicolas Joly's avatar Nicolas Joly Committed by David Bigagli
Browse files

Fix squeue -o %X output to correctly handle NO_VAL and suffix.

parent 1361c7cf
No related branches found
No related tags found
No related merge requests found
......@@ -459,7 +459,12 @@ int _print_job_core_spec(job_info_t * job, int width, bool right, char* suffix)
if (job == NULL) /* Print the Header instead */
_print_str("CORE_SPEC", width, right, true);
else
_print_int(job->core_spec, width, right, true);
if (job->core_spec == (uint16_t) NO_VAL)
_print_str("*", width, right, true);
else
_print_int(job->core_spec, width, right, true);
if (suffix)
printf("%s", suffix);
return SLURM_SUCCESS;
}
......
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