summaryrefslogtreecommitdiff
path: root/battery
diff options
context:
space:
mode:
Diffstat (limited to 'battery')
-rwxr-xr-xbattery2
1 files changed, 1 insertions, 1 deletions
diff --git a/battery b/battery
index 8e6caa9..c1ebb6e 100755
--- a/battery
+++ b/battery
@@ -12,7 +12,7 @@ END { if (status=="Full"||status=="Unknown") {
if (status=="Charging") {q = q_full - q_now} else {q = q_now};
h=q/i_now;
m=(h-int(h))*60;
- printf("%s%d%% %dh%dm\n",
+ printf("%s%d%% %dh%02dm\n",
substr(status, 0, 1),
perc,
h, m);