From a2cf7c451cd3d1d4eb897c983ed8f5c9ade20017 Mon Sep 17 00:00:00 2001 From: mrusme Date: Wed, 30 Nov 2022 22:32:38 -0500 Subject: [PATCH] Fix #157, remove host.Warnings check (#159) Warnings were moved to gopsutil internal: https://github.com/shirou/gopsutil/compare/v3.22.9...v3.22.10 --- health.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/health.go b/health.go index 26fe1d4..c99d54a 100644 --- a/health.go +++ b/health.go @@ -323,12 +323,7 @@ func GetOSInfo(ctx context.Context, addr string) OSInfo { } osInfo.Info.KernelVersion = kr - osInfo.Sensors, err = host.SensorsTemperaturesWithContext(ctx) - if err != nil { - if _, isWarningErr := err.(*host.Warnings); !isWarningErr { - osInfo.Error = err.Error() - } - } + osInfo.Sensors, _ = host.SensorsTemperaturesWithContext(ctx) return osInfo }