Add charge time formatting for times greater than an hour

This commit is contained in:
2021-07-14 10:59:33 -04:00
parent aee55e0709
commit d9eccb37b6

View File

@ -149,7 +149,7 @@ func formatDuration(d time.Duration) string {
h := d / time.Hour h := d / time.Hour
d -= h * time.Hour d -= h * time.Hour
m := d / time.Minute m := d / time.Minute
return fmt.Sprintf("%02d:%02d", h, m) return fmt.Sprintf("%02dh%02dm", h, m)
} }
func flashLights(m chat1.MsgSummary) { func flashLights(m chat1.MsgSummary) {
v := getVehicle(m) v := getVehicle(m)