From d3c81a6e937c4ca777aee0ba55cbca51b853799d Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 16 Jul 2020 14:43:48 -0700 Subject: [PATCH] add missing available space from metrics (#10065) --- cmd/erasure.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cmd/erasure.go b/cmd/erasure.go index f86577e88..f7a37d279 100644 --- a/cmd/erasure.go +++ b/cmd/erasure.go @@ -142,12 +142,13 @@ func getDisksInfo(disks []StorageAPI, endpoints []string) (disksInfo []madmin.Di } } di := madmin.Disk{ - Endpoint: endpoints[index], - DrivePath: info.MountPath, - TotalSpace: info.Total, - UsedSpace: info.Used, - UUID: info.ID, - State: diskErrToDriveState(err), + Endpoint: endpoints[index], + DrivePath: info.MountPath, + TotalSpace: info.Total, + UsedSpace: info.Used, + AvailableSpace: info.Free, + UUID: info.ID, + State: diskErrToDriveState(err), } if info.Total > 0 { di.Utilization = float64(info.Used / info.Total * 100)