Corrected output for command mc admin info (#4448)

Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
This commit is contained in:
Shubhendu
2023-01-19 09:13:40 -08:00
committed by GitHub
parent 58f9fec703
commit e9e6c2231f
+6 -8
View File
@@ -80,15 +80,13 @@ func clusterSummaryInfo(info madmin.InfoMessage) clusterInfo {
}
}
pool.endpoints.Add(srv.Endpoint)
for _, disk := range srv.Disks {
if disk.SetIndex > pool.setsCount {
pool.setsCount = disk.SetIndex
}
if disk.DiskIndex > pool.drivesPerSet {
pool.drivesPerSet = disk.DiskIndex
}
if disk.SetIndex > pool.setsCount {
pool.setsCount = disk.SetIndex
}
if disk.DiskIndex > pool.drivesPerSet {
pool.drivesPerSet = disk.DiskIndex
}
summary[disk.PoolIndex] = pool
}
}