From 770097b64fb6701b11390ffb2ad04b08977fc482 Mon Sep 17 00:00:00 2001 From: Ziyi Fan Date: Mon, 29 Apr 2024 17:55:22 +0800 Subject: [PATCH] Fix the percent of pool used (#4910) Fix a the percent of pool used in rebalance status --- cmd/admin-rebalance-status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/admin-rebalance-status.go b/cmd/admin-rebalance-status.go index ff085fcd..959c526f 100644 --- a/cmd/admin-rebalance-status.go +++ b/cmd/admin-rebalance-status.go @@ -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 }