aboutsummaryrefslogtreecommitdiff
path: root/collector/hwmon_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'collector/hwmon_linux.go')
-rw-r--r--collector/hwmon_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/collector/hwmon_linux.go b/collector/hwmon_linux.go
index 5649942..261a7c5 100644
--- a/collector/hwmon_linux.go
+++ b/collector/hwmon_linux.go
@@ -424,7 +424,7 @@ func (c *hwMonCollector) Update(ch chan<- prometheus.Metric) error {
424 424
425 hwmonFiles, err := ioutil.ReadDir(hwmonPathName) 425 hwmonFiles, err := ioutil.ReadDir(hwmonPathName)
426 if err != nil { 426 if err != nil {
427 if os.IsNotExist(err) { 427 if errors.Is(err, os.ErrNotExist) {
428 level.Debug(c.logger).Log("msg", "hwmon collector metrics are not available for this system") 428 level.Debug(c.logger).Log("msg", "hwmon collector metrics are not available for this system")
429 return ErrNoData 429 return ErrNoData
430 } 430 }