Remove duplicate cpu hardware info (#8384)

This commit is contained in:
Ashish Kumar Sinha 2019-10-12 00:15:43 +05:30 committed by kannappanr
parent 2320a877bc
commit 1c90485b56

View File

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