This commit is contained in:
shoopea 2019-10-11 15:48:57 +08:00
parent 5e9abeb82c
commit 8e571cd370

4
job.go
View File

@ -973,9 +973,9 @@ func jobVaultStatus(j Job) {
logOnError(err, "jobVaultStatus : getObjItem")
out = fmt.Sprintf("%s<code>%-34s|%-5d |%-5d |", out, item.Name, depositList[i], withdrawList[i])
if (depositList[i] - withdrawList[i]) >= 0 {
out = fmt.Sprintf("%s-5d</code>\n", out, depositList[i]-withdrawList[i])
out = fmt.Sprintf("%s%-5d</code>\n", out, depositList[i]-withdrawList[i])
} else {
out = fmt.Sprintf("%s,/code><pre>-5d</pre>\n", out, depositList[i]-withdrawList[i])
out = fmt.Sprintf("%s,/code><pre>%-5d</pre>\n", out, depositList[i]-withdrawList[i])
}
}
log.Printf("Vault Status :\n%s", out)