diff options
author | Jose A. Ortega Ruiz <jao@gnu.org> | 2010-01-19 20:19:55 +0100 |
---|---|---|
committer | Jose A. Ortega Ruiz <jao@gnu.org> | 2010-01-19 20:19:55 +0100 |
commit | 14b05b90ee5ba5e1baa4c5333341431b306e4e95 (patch) | |
tree | 2609cc6366f72604c95def46bbbc044511e8707f /Plugins/Monitors/CoreTemp.hs | |
parent | 3d100946bc6f900fb5a4035213f4c8c1fd81f062 (diff) | |
download | xmobar-14b05b90ee5ba5e1baa4c5333341431b306e4e95.tar.gz xmobar-14b05b90ee5ba5e1baa4c5333341431b306e4e95.tar.bz2 |
CoreTemp: return temperatures as integer values
Ignore-this: ce917bed99a2d812238d4581fbbff3d6
darcs-hash:20100119191955-40885-21098d264f191a572a0e30f83296d26405d38cba.gz
Diffstat (limited to 'Plugins/Monitors/CoreTemp.hs')
-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 f014335..2bb220c 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 = 1e3 :: Double + divisor = (floor . (/1000.0)) :: Double -> Integer failureMessage = "CoreTemp: N/A" checkedDataRetrieval failureMessage dir file pattern divisor |