Skip to content
Snippets Groups Projects
Commit 2ebc8814 authored by Don Lipari's avatar Don Lipari
Browse files

Fixed bug in sacct displaying derived exit code

parent dfc2dce4
No related branches found
No related tags found
No related merge requests found
...@@ -162,10 +162,10 @@ sub usage ...@@ -162,10 +162,10 @@ sub usage
$base [-h] $base [-h]
$base [-man] $base [-man]
-e <exit code> Show user and all accounts and share usage for named user (required). -e <exit code> Modify the derived exit code to new value.
-r <reason string> Show account and share usage for named account (required). -r <reason string> Modify the derived exit string to new value.
-c <cluster> Name of cluster (optional). -c <cluster> Name of cluster (optional).
-l list information for a completed job. -l List information for a completed job.
-h Show usage. -h Show usage.
JobId The identification number of the job. JobId The identification number of the job.
-man Show man page. -man Show man page.
......
...@@ -355,6 +355,8 @@ void print_fields(type_t type, void *object) ...@@ -355,6 +355,8 @@ void print_fields(type_t type, void *object)
switch(type) { switch(type) {
case JOB: case JOB:
tmp_int = job->derived_ec; tmp_int = job->derived_ec;
if (tmp_int == NO_VAL)
tmp_int = 0;
if (WIFSIGNALED(tmp_int)) if (WIFSIGNALED(tmp_int))
tmp_int2 = WTERMSIG(tmp_int); tmp_int2 = WTERMSIG(tmp_int);
......
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