diff options
author | Jose A. Ortega Ruiz <jao@gnu.org> | 2010-01-21 13:34:51 +0100 |
---|---|---|
committer | Jose A. Ortega Ruiz <jao@gnu.org> | 2010-01-21 13:34:51 +0100 |
commit | beb44d60db84430915c1a10e0ac8d4d714dd3cef (patch) | |
tree | 37b3474d6d3edc6df2e21a894546674759689285 | |
parent | 0241717d47595110ef80912445048710c5b997ac (diff) | |
download | xmobar-beb44d60db84430915c1a10e0ac8d4d714dd3cef.tar.gz xmobar-beb44d60db84430915c1a10e0ac8d4d714dd3cef.tar.bz2 |
CoreTemps: revert to non-rounding by default
Ignore-this: b8e96bb91956ea8235c7cae5dba4f4b1
We can control now whether to print decimals using -M
darcs-hash:20100121123451-40885-4e2f46ebc0ee72a521a8bea1a10e33d8019e2b65.gz
-rw-r--r-- | Plugins/Monitors/CoreTemp.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Plugins/Monitors/CoreTemp.hs b/Plugins/Monitors/CoreTemp.hs index 1db6a28..66ac637 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 = (round . (/1000.0)) :: Double -> Integer + divisor = 1e3 :: Double failureMessage = "CoreTemp: N/A" - checkedDataRetrieval failureMessage dir file pattern divisor + checkedDataRetrieval failureMessage dir file pattern (/divisor) |