diff options
| author | tslil clingman <> | 2023-12-14 22:19:04 +0100 |
|---|---|---|
| committer | tslil clingman <> | 2023-12-14 22:19:04 +0100 |
| commit | 9268a49def2f8e6e829f27e448269e7604a75b9a (patch) | |
| tree | 08bc67f8ac3145723018157a6cd80f0431a8a431 /battery | |
| parent | fb9e55809afe7a2cecd80c523a37cb197970f9c5 (diff) | |
battery: always two-digit minutes
Diffstat (limited to 'battery')
| -rwxr-xr-x | battery | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
