test fmt
This commit is contained in:
parent
4c7eef5996
commit
e66858b6fe
4
job.go
4
job.go
@ -968,13 +968,13 @@ func jobVaultStatus(j Job) {
|
|||||||
}
|
}
|
||||||
if currentUserID64 != 0 {
|
if currentUserID64 != 0 {
|
||||||
//display info
|
//display info
|
||||||
out := fmt.Sprintf("<pre>%-32s | Depo. | Recv. | Total\n────────────────────────────┼──────┼──────┼──────\n", `Item`)
|
out := fmt.Sprintf("<code>%-32s | Depo. | Recv. | Total\n────────────────────────────┼──────┼──────┼──────\n", `Item`)
|
||||||
for i, itemId := range itemList {
|
for i, itemId := range itemList {
|
||||||
item, err := getObjItem(itemId)
|
item, err := getObjItem(itemId)
|
||||||
logOnError(err, "jobVaultStatus : getObjItem")
|
logOnError(err, "jobVaultStatus : getObjItem")
|
||||||
out = fmt.Sprintf("%s%-32s |%6d |%6d |%6d\n", out, item.Name, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
|
out = fmt.Sprintf("%s%-32s |%6d |%6d |%6d\n", out, item.Name, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
|
||||||
}
|
}
|
||||||
out = fmt.Sprintf("%s</pre>", out)
|
out = fmt.Sprintf("%s</code>", out)
|
||||||
log.Printf("Vault Status :\n%s", out)
|
log.Printf("Vault Status :\n%s", out)
|
||||||
c := TGCommand{
|
c := TGCommand{
|
||||||
Type: commandReplyMsg,
|
Type: commandReplyMsg,
|
||||||
|
Loading…
Reference in New Issue
Block a user