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