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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user