Permalink
Browse files

Revert "More paths for CoreTemp (issue #291)"

This reverts commit 938a8d8.
  • Loading branch information...
jaor committed Oct 10, 2018
1 parent d34f616 commit 559c61db9571f887263bdfc0f736aaa2bab9e265
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/Plugins/Monitors/CoreTemp.hs
@@ -39,8 +39,7 @@ runCoreTemp _ = do
failureMessage <- getConfigValue naString
let path = ["/sys/bus/platform/devices/coretemp.", "/temp", "_input"]
path' = ["/sys/bus/platform/devices/coretemp.", "/hwmon/hwmon", "/temp", "_input"]
path'' = ["/sys/class/hwmon/hwmon", "/device/hwmon/hwmon", "/temp", "_input"]
lbl = Just ("_label", read . dropWhile (not . isDigit))
divisor = 1e3 :: Double
show' = showDigits (max 0 dn)
checkedDataRetrieval failureMessage [path, path', path''] lbl (/divisor) show'
checkedDataRetrieval failureMessage [path, path'] lbl (/divisor) show'

0 comments on commit 559c61d

Please sign in to comment.