Corrected output for command mc admin info (#4448)
Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
This commit is contained in:
+6
-8
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user