From 7af1ddc5ebbe9d651ffbc057614be18637e69939 Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 30 Mar 2022 22:23:10 +0100 Subject: Fix: consistent use of configured nastring instead of hardcoded N/A --- src/Xmobar/Plugins/Monitors/Load.hs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/Xmobar/Plugins/Monitors/Load.hs') diff --git a/src/Xmobar/Plugins/Monitors/Load.hs b/src/Xmobar/Plugins/Monitors/Load.hs index 616b673..bc0af09 100644 --- a/src/Xmobar/Plugins/Monitors/Load.hs +++ b/src/Xmobar/Plugins/Monitors/Load.hs @@ -22,9 +22,7 @@ import System.Posix.Files (fileExist) -- | Default configuration. loadConfig :: IO MConfig -loadConfig = mkMConfig - "Load: " -- template - ["load1", "load5", "load15"] -- available replacements +loadConfig = mkMConfig "Load: " ["load1", "load5", "load15"] -- | Parses the contents of a loadavg proc file, returning -- the list of load averages @@ -43,4 +41,4 @@ runLoad _ = do d <- getConfigValue decDigits parseTemplate =<< mapM (showWithColors (showDigits d)) l) else - return "Load: N/A" + getConfigValue naString -- cgit v1.2.3