mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Remove duplicate cpu hardware info (#8384)
This commit is contained in:
parent
2320a877bc
commit
1c90485b56
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user