From fa5443124c7aded9698e7683eca1e5c31a550ed4 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sun, 18 Dec 2011 03:17:38 +0100 Subject: New -d (decimal digits) monitor option (issue #58) --- src/Plugins/Monitors/Net.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Plugins/Monitors/Net.hs') diff --git a/src/Plugins/Monitors/Net.hs b/src/Plugins/Monitors/Net.hs index 8382542..1513e07 100644 --- a/src/Plugins/Monitors/Net.hs +++ b/src/Plugins/Monitors/Net.hs @@ -74,7 +74,8 @@ netParser = formatNet :: Float -> Monitor (String, String) formatNet d = do s <- getConfigValue useSuffix - let str = if s then (++"Kb/s") . showDigits 1 else showDigits 1 + dd <- getConfigValue decDigits + let str = if s then (++"Kb/s") . showDigits dd else showDigits dd b <- showLogBar 0.9 d x <- showWithColors str d return (x, b) -- cgit v1.2.3