From d47c91e62c19aee13e922752e0f13f2dfcd4357e Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 14 Feb 2020 11:23:20 +0800 Subject: [PATCH] fix shops display --- job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/job.go b/job.go index 7d44353..3261ccf 100644 --- a/job.go +++ b/job.go @@ -2275,7 +2275,7 @@ func jobShops(j Job) { t := (cwm.ManaTotal - cwm.Mana) / ((cwm.ManaTotal / 250) + 1) d := time.Duration(t) * time.Minute if d.Hours() > 1 { - out = fmt.Sprintf("%s%.0fh\n", out, d.Hours) + out = fmt.Sprintf("%s%.0fh\n", out, d.Hours()) } d = d - d.Truncate(1*time.Hour) if d.Minutes() > 0 {