summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-04-06 09:01:38 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-04-06 09:01:38 +0200
commit1db2484270d937a4f2d80c24f88c18f7aaecc545 (patch)
tree5b963acdb8cff6f46eecd86b1de74b63f2531e2b
parent6b9684f4e7efa3dfe29ead936475bd4448245323 (diff)
dfatool: fix 'show' for next/prev relative energy values
-rwxr-xr-xbin/dfatool2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dfatool b/bin/dfatool
index 881d04b..cdaae5a 100755
--- a/bin/dfatool
+++ b/bin/dfatool
@@ -280,7 +280,7 @@ my %action = (
push( @widths, max (length($pstr), 9) );
printf(' → %9s', $pstr);
my @energies
- = map { $_->{uW_mean_delta} * ( $_->{us} - 20 ) }
+ = map { $_->{uW_mean_delta_prev} * ( $_->{us} - 20 ) }
@{ $elem->{offline} };
push( @data, sum(@energies) / @energies );
}