From ce71c40c928b63d0e67ee68136733f38fc643a82 Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Thu, 3 Aug 2017 22:17:14 -0700 Subject: [PATCH] missed a variable name --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index 8767f16..9e82a1d 100755 --- a/inxi +++ b/inxi @@ -4237,7 +4237,7 @@ get_battery_data() } $1 ~ /^POWER_SUPPLY_ENERGY_NOW$/ { energy_now = $NF / 1000000 - energy_now = sprintf( "%.1f", charge_now ) + energy_now = sprintf( "%.1f", energy_now ) } # note: the following 3 were off, 100000 instead of 1000000 # why this is, I do not know. I did not document any reason for that