summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbattery2
1 files changed, 1 insertions, 1 deletions
diff --git a/battery b/battery
index 7b1c348..be16e68 100755
--- a/battery
+++ b/battery
@@ -65,7 +65,7 @@ sub update {
my $tot=$bs->{energy_full}/$bs->{power_now};
$txt .= sprintf '%s/%s ',
- _format_time($charging ? $tot-$t : $t),
+ _format_time($t),
_format_time($tot);
$bar->set_fraction($t/$tot);
}