diff --git a/hosts/modules/gui/sxmo/battery_estimate b/hosts/modules/gui/sxmo/battery_estimate index 0c4afc23..8183354e 100755 --- a/hosts/modules/gui/sxmo/battery_estimate +++ b/hosts/modules/gui/sxmo/battery_estimate @@ -16,7 +16,7 @@ fmt_minutes() { hr=$(($2 / 60)) hr_in_min=$(($hr * 60)) min=$(($2 - $hr_in_min)) - echo "$1 ${hr}h${min}m" + printf "%s %dh%02dm" "$1" "$hr" "$min" fi }