From 299edc887465d9bb5dc78586991b98e784dfb96f Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 7 Feb 2020 15:26:13 +0800 Subject: [PATCH] test shops --- job.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/job.go b/job.go index e19af47..c2a7a60 100644 --- a/job.go +++ b/job.go @@ -2252,8 +2252,7 @@ func jobShops(j Job) { out = fmt.Sprintf("%s [%d : %d]", out, cwm.Mana, cwm.ManaTotal) if cwm.Mana < cwm.ManaTotal { - s := (((cwm.ManaTotal - cwm.Mana) * 60) / ((cwm.ManaTotal / 250) + 1)) - d := s * time.Second + d := time.Duration(((cwm.ManaTotal-cwm.Mana)*60)/((cwm.ManaTotal/250)+1)) * time.Second out = fmt.Sprintf("%s %s\n", out, d.String()) } else { out = fmt.Sprintf("%s\n", out)