fix shops display
This commit is contained in:
parent
b1706a3d22
commit
d47c91e62c
2
job.go
2
job.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user