From 1c90485b56585e55bad51d72925e79aad8d6fae9 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Sinha Date: Sat, 12 Oct 2019 00:15:43 +0530 Subject: [PATCH] Remove duplicate cpu hardware info (#8384) --- cmd/admin-server-info.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/admin-server-info.go b/cmd/admin-server-info.go index 2dafe0766..941c66906 100644 --- a/cmd/admin-server-info.go +++ b/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()