From 49e05f4935cf7067aa55a73a175edd7d08dba68f Mon Sep 17 00:00:00 2001 From: John Goerzen Date: Wed, 17 Sep 2008 04:53:06 +0200 Subject: 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 --- Plugins/Monitors/Common.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) = -- cgit v1.2.3