From 88230bb0301aebc37c971d235f5a9735d9563f8d Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 30 Mar 2022 19:22:13 +0100 Subject: Load: honour the -d (decimal digits) monitor argument --- src/Xmobar/Plugins/Monitors/Load.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Xmobar/Plugins') diff --git a/src/Xmobar/Plugins/Monitors/Load.hs b/src/Xmobar/Plugins/Monitors/Load.hs index e41e897..4703e8a 100644 --- a/src/Xmobar/Plugins/Monitors/Load.hs +++ b/src/Xmobar/Plugins/Monitors/Load.hs @@ -41,7 +41,8 @@ runLoad _ = do exists <- io $ fileExist file if exists then (do l <- io $ B.readFile file >>= return . parseLoadAvgs - let s = showWithColors . const . showDigits 2 + d <- getConfigValue decDigits + let s = showWithColors . const . showDigits d parseTemplate =<< zipWithM s l l) else return "Load: N/A" -- cgit v1.2.3