Skip to content
Snippets Groups Projects
Commit 5e3e4516 authored by jette's avatar jette
Browse files

Correct srun verbose logging when int > 32-bits long

parent c2b4c0d4
No related branches found
No related tags found
No related merge requests found
...@@ -2224,16 +2224,16 @@ static char *print_constraints() ...@@ -2224,16 +2224,16 @@ static char *print_constraints()
{ {
char *buf = xstrdup(""); char *buf = xstrdup("");
if (opt.pn_min_cpus > 0) if (opt.pn_min_cpus != NO_VAL)
xstrfmtcat(buf, "mincpus-per-node=%d ", opt.pn_min_cpus); xstrfmtcat(buf, "mincpus-per-node=%d ", opt.pn_min_cpus);
if (opt.pn_min_memory > 0) if (opt.pn_min_memory != NO_VAL)
xstrfmtcat(buf, "mem-per-node=%dM ", opt.pn_min_memory); xstrfmtcat(buf, "mem-per-node=%dM ", opt.pn_min_memory);
if (opt.mem_per_cpu > 0) if (opt.mem_per_cpu != NO_VAL)
xstrfmtcat(buf, "mem-per-cpu=%dM ", opt.mem_per_cpu); xstrfmtcat(buf, "mem-per-cpu=%dM ", opt.mem_per_cpu);
if (opt.pn_min_tmp_disk > 0) if (opt.pn_min_tmp_disk != NO_VAL)
xstrfmtcat(buf, "tmp-per-node=%ld ", opt.pn_min_tmp_disk); xstrfmtcat(buf, "tmp-per-node=%ld ", opt.pn_min_tmp_disk);
if (opt.contiguous == true) if (opt.contiguous == true)
......
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