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

Fix sacct to work off new consumed energy on the job record.

parent 80c282f1
No related branches found
No related tags found
No related merge requests found
...@@ -629,9 +629,12 @@ void print_fields(type_t type, void *object) ...@@ -629,9 +629,12 @@ void print_fields(type_t type, void *object)
if (got_stats) { if (got_stats) {
switch (type) { switch (type) {
case JOB: case JOB:
if (!job->track_steps) if ((tmp_uint64 =
tmp_uint64 = step-> slurmdb_find_tres_count_in_string(
stats.consumed_energy; job->tres_alloc_str,
TRES_ENERGY))
== INFINITE64)
tmp_uint64 = 0;
break; break;
case JOBSTEP: case JOBSTEP:
tmp_uint64 = tmp_uint64 =
...@@ -656,9 +659,12 @@ void print_fields(type_t type, void *object) ...@@ -656,9 +659,12 @@ void print_fields(type_t type, void *object)
if (got_stats) { if (got_stats) {
switch (type) { switch (type) {
case JOB: case JOB:
if (!job->track_steps) if ((tmp_uint64 =
tmp_uint64 = step-> slurmdb_find_tres_count_in_string(
stats.consumed_energy; job->tres_alloc_str,
TRES_ENERGY))
== INFINITE64)
tmp_uint64 = 0;
break; break;
case JOBSTEP: case JOBSTEP:
tmp_uint64 = step-> tmp_uint64 = step->
......
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