Skip to content

Commit

Permalink
BF: CS-648 qstat -j jobid -xml outputs the current time for JB_execut…
Browse files Browse the repository at this point in the history
…ion_time and JB_deadline_time instead of 0 when no execution time or deadline is set
  • Loading branch information
jgabler-hpc committed Oct 3, 2024
1 parent 0c2bf7c commit 7dce9b3
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions source/libs/sgeobj/sge_cull_xml.cc
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,19 @@ static void lWriteElemXML_(const lListElem *ep, int nesting_level, FILE *fp, int
fprintf(fp, sge_u64, value / 1000000);
}
} else {
DSTRING_STATIC(dstr, 128);
if (!fp) {
DPRINTF("%s", sge_ctime64_xml(value, &dstr));
if (value == 0) {
if (!fp) {
DPRINTF("0");
} else {
fprintf(fp, "0");
}
} else {
fprintf(fp, "%s", sge_ctime64_xml(value, &dstr));
DSTRING_STATIC(dstr, 128);
if (!fp) {
DPRINTF("%s", sge_ctime64_xml(value, &dstr));
} else {
fprintf(fp, "%s", sge_ctime64_xml(value, &dstr));
}
}
}
} else {
Expand Down

0 comments on commit 7dce9b3

Please sign in to comment.