fix shops display

This commit is contained in:
shoopea 2020-02-14 11:23:20 +08:00
parent b1706a3d22
commit d47c91e62c

2
job.go
View File

@ -2275,7 +2275,7 @@ func jobShops(j Job) {
t := (cwm.ManaTotal - cwm.Mana) / ((cwm.ManaTotal / 250) + 1) t := (cwm.ManaTotal - cwm.Mana) / ((cwm.ManaTotal / 250) + 1)
d := time.Duration(t) * time.Minute d := time.Duration(t) * time.Minute
if d.Hours() > 1 { 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) d = d - d.Truncate(1*time.Hour)
if d.Minutes() > 0 { if d.Minutes() > 0 {