test fmt
This commit is contained in:
parent
008b081413
commit
fb3eb32e18
4
job.go
4
job.go
@ -968,11 +968,11 @@ func jobVaultStatus(j Job) {
|
||||
}
|
||||
if currentUserID64 != 0 {
|
||||
//display info
|
||||
out := fmt.Sprintf("<pre>%-28s | Dep. | Rcv. | Total\n-------------------------------------------------\n", `Item`)
|
||||
out := fmt.Sprintf("<pre>%-28s | Dep. | Rcv. | Total\n------------------------------┼-------┼-------┼------\n", `Item`)
|
||||
for i, itemId := range itemList {
|
||||
item, err := getObjItem(itemId)
|
||||
logOnError(err, "jobVaultStatus : getObjItem")
|
||||
out = fmt.Sprintf("%s%-28s |%-5d |%-5d |%-5d\n", out, item.Name, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
|
||||
out = fmt.Sprintf("%s%-28s |%6d |%6d |%6d\n", out, item.Name, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
|
||||
}
|
||||
out = fmt.Sprintf("%s</pre>", out)
|
||||
log.Printf("Vault Status :\n%s", out)
|
||||
|
Loading…
Reference in New Issue
Block a user