Skip to content

Commit

Permalink
fix: fix get-quota (#87)
Browse files Browse the repository at this point in the history
* fix: improve get-quota api

* fix: fix format of get-quota

* fix: fix get-quota cmd

* fix: fix format

* fix: fix format
  • Loading branch information
flywukong authored Sep 6, 2023
1 parent 2bc1674 commit 11afa14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/cmd_payment.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ func getQuotaInfo(ctx *cli.Context) error {
return toCmdErr(err)
}

fmt.Printf("quota info:\n charged quota:%d \n free quota:%d \n consumed quota:%d \n",
quotaInfo.ReadQuotaSize, quotaInfo.SPFreeReadQuotaSize, quotaInfo.ReadConsumedSize)
fmt.Printf(" quota info:\n charged quota:%d \n free quota remained :%d \n charged quota consumed:%d \n free quota consumed: %d \n",
quotaInfo.ReadQuotaSize, quotaInfo.SPFreeReadQuotaSize, quotaInfo.ReadConsumedSize, quotaInfo.FreeConsumedSize)

return nil
}

0 comments on commit 11afa14

Please sign in to comment.