summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar/Plugins/Monitors/Load.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Xmobar/Plugins/Monitors/Load.hs')
-rw-r--r--src/Xmobar/Plugins/Monitors/Load.hs3
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"