From 3249f651d14186d088281fe58f95090dfedc1bda Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 14 Jul 2021 10:59:52 -0400 Subject: [PATCH] Add charge time formatting for times greater than 1 hour --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 4ef7de0..e25f289 100644 --- a/main.go +++ b/main.go @@ -428,5 +428,5 @@ func formatDuration(d time.Duration) string { h := d / time.Hour d -= h * time.Hour m := d / time.Minute - return fmt.Sprintf("%02d:%02d", h, m) + return fmt.Sprintf("%02dh%02dm", h, m) }