From 34be0ed96a3560edefbc09006af49e8ddf4ee922 Mon Sep 17 00:00:00 2001 From: Anis Eleuch Date: Thu, 14 Dec 2023 19:00:20 -0800 Subject: [PATCH] decom: status clearly shows that the it is about raw disk usage (#4792) Some users are confused about the 'Capacity' wording and think this is about the objects usage, not disk usage; Change the wording to make this is more clear. --- cmd/admin-decom-status.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/admin-decom-status.go b/cmd/admin-decom-status.go index 8b86e3a5..83e94e92 100644 --- a/cmd/admin-decom-status.go +++ b/cmd/admin-decom-status.go @@ -139,14 +139,14 @@ func mainAdminDecommissionStatus(ctx *cli.Context) error { cellText[0] = []string{ "ID", "Pools", - "Capacity", + "Raw Drives Usage", "Status", } for idx, pool := range poolStatuses { idx++ totalSize := uint64(pool.Decommission.TotalSize) - currentSize := uint64(pool.Decommission.CurrentSize) - capacity := humanize.IBytes(totalSize-currentSize) + " (used) / " + humanize.IBytes(totalSize) + " (total)" + usedCurrent := uint64(pool.Decommission.TotalSize - pool.Decommission.CurrentSize) + capacity := fmt.Sprintf("%.1f%% (total: %s)", 100*float64(usedCurrent)/float64(totalSize), humanize.IBytes(totalSize)) status := "Active" if pool.Decommission != nil { if pool.Decommission.Complete {