Skip to content
Snippets Groups Projects
Commit 3bf91e09 authored by Paddy Doyle's avatar Paddy Doyle Committed by Danny Auble
Browse files

Convert tres_usage_in_max to kb

As noted by Josko Plazonic in the bug report, the tres_usage_in_max
value is bytes, whereas the script expects kb.

Bug 6004
parent 46f96789
No related branches found
No related tags found
No related merge requests found
......@@ -127,7 +127,7 @@ for my $step (@{$job->{'steps'}}) {
$tot_cpu_usec += $step->{'tot_cpu_usec'};
if (exists $step->{'stats'} && exists $step->{'stats'}{'tres_usage_in_max'}) {
my $lmem = Slurmdb::find_tres_count_in_string($step->{'stats'}{'tres_usage_in_max'}, TRES_MEM);
my $lmem = Slurmdb::find_tres_count_in_string($step->{'stats'}{'tres_usage_in_max'}, TRES_MEM) / 1024;
if ($mem < $lmem) {
$mem = $lmem;
......
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