summaryrefslogtreecommitdiffstats
path: root/devices/temp_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'devices/temp_linux.go')
-rw-r--r--devices/temp_linux.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/devices/temp_linux.go b/devices/temp_linux.go
index 0bd480f..b738002 100644
--- a/devices/temp_linux.go
+++ b/devices/temp_linux.go
@@ -3,6 +3,7 @@
package devices
import (
+ "log"
"strings"
"github.com/shirou/gopsutil/host"
@@ -15,8 +16,11 @@ func devs() []string {
}
sensors, err := host.SensorsTemperatures()
if err != nil {
- // FIXME report the error
- return []string{}
+ log.Printf("gopsutil reports %s", err)
+ if len(sensors) == 0 {
+ log.Printf("no temperature sensors returned")
+ return []string{}
+ }
}
rv := make([]string, 0, len(sensors))
for _, sensor := range sensors {