diff options
author | jao <jao@gnu.org> | 2022-03-30 19:22:13 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-03-30 19:22:13 +0100 |
commit | 88230bb0301aebc37c971d235f5a9735d9563f8d (patch) | |
tree | b531024e4146358e16fca71fd8e614c5e5b87874 /src/Xmobar | |
parent | 60b106ac0db19800667ee54b0d390d80e0873b52 (diff) | |
download | xmobar-88230bb0301aebc37c971d235f5a9735d9563f8d.tar.gz xmobar-88230bb0301aebc37c971d235f5a9735d9563f8d.tar.bz2 |
Load: honour the -d (decimal digits) monitor argument
Diffstat (limited to 'src/Xmobar')
-rw-r--r-- | src/Xmobar/Plugins/Monitors/Load.hs | 3 |
1 files changed, 2 insertions, 1 deletions
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" |