diff options
author | Jose A. Ortega Ruiz <jao@gnu.org> | 2010-01-19 20:47:26 +0100 |
---|---|---|
committer | Jose A. Ortega Ruiz <jao@gnu.org> | 2010-01-19 20:47:26 +0100 |
commit | e87272bf601bd2efa2c6ef08d6a42765b809e6d9 (patch) | |
tree | 041b10908901f97a255a30099a294bdd20e017ce /Plugins/Monitors | |
parent | 14b05b90ee5ba5e1baa4c5333341431b306e4e95 (diff) | |
download | xmobar-e87272bf601bd2efa2c6ef08d6a42765b809e6d9.tar.gz xmobar-e87272bf601bd2efa2c6ef08d6a42765b809e6d9.tar.bz2 |
CoreTemp: round temperatures instead of truncating them
Ignore-this: dd5d719c37169216ad664f916d2bb590
darcs-hash:20100119194726-40885-85c5113621d44d94fc73f6f99f283232d676e1a5.gz
Diffstat (limited to 'Plugins/Monitors')
-rw-r--r-- | Plugins/Monitors/CoreTemp.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Plugins/Monitors/CoreTemp.hs b/Plugins/Monitors/CoreTemp.hs index 2bb220c..1db6a28 100644 --- a/Plugins/Monitors/CoreTemp.hs +++ b/Plugins/Monitors/CoreTemp.hs @@ -35,7 +35,7 @@ runCoreTemp _ = do let dir = "/sys/bus/platform/devices" file = "temp1_input" pattern = "coretemp." - divisor = (floor . (/1000.0)) :: Double -> Integer + divisor = (round . (/1000.0)) :: Double -> Integer failureMessage = "CoreTemp: N/A" checkedDataRetrieval failureMessage dir file pattern divisor |