Add charge time formatting for times greater than an hour
This commit is contained in:
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user