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.
This commit is contained in:
Anis Eleuch
2023-12-14 19:00:20 -08:00
committed by GitHub
parent 28f44cb9a0
commit 34be0ed96a
+3 -3
View File
@@ -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 {