Remove duplicate cpu hardware info (#8384)

master
Ashish Kumar Sinha 5 years ago committed by kannappanr
parent 2320a877bc
commit 1c90485b56
  1. 2
      cmd/admin-server-info.go

@ -124,6 +124,8 @@ func getLocalCPUInfo(endpoints EndpointList, r *http.Request) madmin.ServerCPUHa
if seenHosts.Contains(endpoint.Host) {
continue
}
// Add to the list of visited hosts
seenHosts.Add(endpoint.Host)
// Only proceed for local endpoints
if endpoint.IsLocal {
cpuHardware, err := cpuhw.Info()

Loading…
Cancel
Save