summaryrefslogtreecommitdiffhomepage
path: root/src/Plugins/Monitors/CoreTemp.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Plugins/Monitors/CoreTemp.hs')
-rw-r--r--src/Plugins/Monitors/CoreTemp.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Plugins/Monitors/CoreTemp.hs b/src/Plugins/Monitors/CoreTemp.hs
index eebdc95..bfe9aca 100644
--- a/src/Plugins/Monitors/CoreTemp.hs
+++ b/src/Plugins/Monitors/CoreTemp.hs
@@ -38,7 +38,8 @@ runCoreTemp _ = do
dn <- getConfigValue decDigits
failureMessage <- getConfigValue naString
let path = ["/sys/bus/platform/devices/coretemp.", "/temp", "_input"]
+ path' = ["/sys/bus/platform/devices/coretemp.", "/hwmon/hwmon", "/temp", "_input"]
lbl = Just ("_label", read . (dropWhile (not . isDigit)))
divisor = 1e3 :: Double
show' = showDigits (max 0 dn)
- checkedDataRetrieval failureMessage [path] lbl (/divisor) show'
+ checkedDataRetrieval failureMessage [path, path'] lbl (/divisor) show'