pick disks which are common maximally used (#10600)

further optimization to ensure that good disks
are always used for listing, other than healing
we only use disks that are maximally used.
This commit is contained in:
Harshavardhana
2020-09-29 22:54:02 -07:00
committed by GitHub
parent 799758e54f
commit 2b4eb87d77
15 changed files with 70 additions and 16 deletions

View File

@@ -216,12 +216,11 @@ func (fs *FSObjects) StorageInfo(ctx context.Context, _ bool) (StorageInfo, []er
if err != nil {
return StorageInfo{}, []error{err}
}
used := di.Total - di.Free
storageInfo := StorageInfo{
Disks: []madmin.Disk{
{
TotalSpace: di.Total,
UsedSpace: used,
UsedSpace: di.Used,
AvailableSpace: di.Free,
DrivePath: fs.fsPath,
},