Fix the percent of pool used (#4910)

Fix a the percent of pool used in rebalance status
This commit is contained in:
Ziyi Fan
2024-04-29 02:55:22 -07:00
committed by GitHub
parent afd408284e
commit 770097b64f
+1 -1
View File
@@ -88,7 +88,7 @@ func mainAdminRebalanceStatus(ctx *cli.Context) error {
)
row := make([]string, len(rInfo.Pools))
for idx, pool := range rInfo.Pools {
statusStr := fmt.Sprintf("%.2f%%", pool.Used)
statusStr := fmt.Sprintf("%.2f%%", pool.Used*100)
if pool.Status == "Started" {
statusStr += " *" // indicating rebalance is in progress in this pool
}