Skip to content
Snippets Groups Projects
Commit d837caaf authored by Danny Auble's avatar Danny Auble
Browse files

Add ElapsedRaw to sacct

parent ae8c6d51
No related branches found
No related tags found
No related merge requests found
......@@ -734,6 +734,25 @@ void print_fields(type_t type, void *object)
(uint64_t)tmp_int,
(curr_inx == field_count));
break;
case PRINT_ELAPSED_RAW:
switch(type) {
case JOB:
tmp_int = job->elapsed;
break;
case JOBSTEP:
tmp_int = step->elapsed;
break;
case JOBCOMP:
tmp_int = job_comp->elapsed_time;
break;
default:
tmp_int = NO_VAL;
break;
}
field->print_routine(field,
tmp_int,
(curr_inx == field_count));
break;
case PRINT_ELIGIBLE:
switch(type) {
case JOB:
......
......@@ -67,6 +67,7 @@ print_field_t fields[] = {
{10, "CPUTimeRAW", print_fields_uint64, PRINT_CPU_TIME_RAW},
{15, "DerivedExitCode", print_fields_str, PRINT_DERIVED_EC},
{10, "Elapsed", print_fields_time_from_secs, PRINT_ELAPSED},
{10, "ElapsedRaw", print_fields_uint32, PRINT_ELAPSED_RAW},
{19, "Eligible", print_fields_date, PRINT_ELIGIBLE},
{19, "End", print_fields_date, PRINT_END},
{8, "ExitCode", print_fields_str, PRINT_EXITCODE},
......
......@@ -112,6 +112,7 @@ typedef enum {
PRINT_CPU_TIME_RAW,
PRINT_DERIVED_EC,
PRINT_ELAPSED,
PRINT_ELAPSED_RAW,
PRINT_ELIGIBLE,
PRINT_END,
PRINT_EXITCODE,
......
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