Don't try to get sensor info on openbsd

This commit is contained in:
Svilen Markov 2025-02-17 23:48:16 +00:00
parent c76a4d4be7
commit cbf1961510

View file

@ -202,7 +202,8 @@ func Collect(req *SystemInfoRequest) (*SystemInfo, []error) {
// keeps returning a single sensor with key "ACPI\\ThermalZone\\TZ00_0" which
// doesn't seem to be the CPU sensor or correspond to anything useful when
// compared against the temperatures Libre Hardware Monitor reports
if runtime.GOOS != "windows" {
// also disabled on openbsd because it's not implemented by go-psutil
if runtime.GOOS != "windows" && runtime.GOOS != "openbsd" {
sensorReadings, err := sensors.SensorsTemperatures()
if err == nil {
if req.CPUTempSensor != "" {