summaryrefslogtreecommitdiffhomepage
path: root/Plugins/Monitors/Common.hs
diff options
context:
space:
mode:
authorJens Petersen <petersen@haskell.org>2007-09-12 08:58:03 +0200
committerJens Petersen <petersen@haskell.org>2007-09-12 08:58:03 +0200
commitbc79a08491bb14a463b6b7554a64ac1347c02a6a (patch)
tree75620f5fe964dc5195dee498c969464277c61fc0 /Plugins/Monitors/Common.hs
parent7d08f7256d9ebc880ed756633741d4e5e5ce6351 (diff)
downloadxmobar-bc79a08491bb14a463b6b7554a64ac1347c02a6a.tar.gz
xmobar-bc79a08491bb14a463b6b7554a64ac1347c02a6a.tar.bz2
only use 1 decimal place for showing floating numbers
darcs-hash:20070912065803-740ef-209c2cf47f371f163f1fa0db60d6838f7190f60c.gz
Diffstat (limited to 'Plugins/Monitors/Common.hs')
-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 bbc9c39..5177fb8 100644
--- a/Plugins/Monitors/Common.hs
+++ b/Plugins/Monitors/Common.hs
@@ -249,7 +249,7 @@ showDigits d n =
floatToPercent :: Float -> String
floatToPercent n =
- showDigits 2 (n * 100) ++ "%"
+ showDigits 1 (n * 100) ++ "%"
stringParser :: Pos -> B.ByteString -> String
stringParser (x,y) =