summaryrefslogtreecommitdiffhomepage
path: root/Plugins/Monitors
diff options
context:
space:
mode:
authorJohn Goerzen <jgoerzen@complete.org>2008-09-17 04:53:06 +0200
committerJohn Goerzen <jgoerzen@complete.org>2008-09-17 04:53:06 +0200
commit49e05f4935cf7067aa55a73a175edd7d08dba68f (patch)
treeed2c50d732a0185cada9a650cfc613da537ca8ec /Plugins/Monitors
parent7fa65a8b46e33c9601e7924b1ea4f46c5012e37f (diff)
downloadxmobar-49e05f4935cf7067aa55a73a175edd7d08dba68f.tar.gz
xmobar-49e05f4935cf7067aa55a73a175edd7d08dba68f.tar.bz2
Don't show tenths of items
This is more precision than needed for CPU, Mem, Swap, etc. and consumes valuable space on small devices darcs-hash:20080917025306-c2a52-abfb2791f165d7f922438dfbc80507609b10e6e4.gz
Diffstat (limited to 'Plugins/Monitors')
-rw-r--r--Plugins/Monitors/Common.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Plugins/Monitors/Common.hs b/Plugins/Monitors/Common.hs
index 7ac10c2..779c6f4 100644
--- a/Plugins/Monitors/Common.hs
+++ b/Plugins/Monitors/Common.hs
@@ -262,7 +262,7 @@ showDigits d n =
floatToPercent :: Float -> String
floatToPercent n =
- showDigits 1 (n * 100) ++ "%"
+ showDigits 0 (n * 100) ++ "%"
stringParser :: Pos -> B.ByteString -> String
stringParser (x,y) =