diff options
author | jao <jao@gnu.org> | 2022-03-30 22:23:10 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-03-30 22:23:10 +0100 |
commit | 7af1ddc5ebbe9d651ffbc057614be18637e69939 (patch) | |
tree | 1b754ad28c697ced892215c43378b39afa58bc2b /src/Xmobar/Plugins/Monitors/Top.hs | |
parent | 211af7d4cb5b29e71bcfbedae8f8c86009e99ad0 (diff) | |
download | xmobar-7af1ddc5ebbe9d651ffbc057614be18637e69939.tar.gz xmobar-7af1ddc5ebbe9d651ffbc057614be18637e69939.tar.bz2 |
Fix: consistent use of configured nastring instead of hardcoded N/A
Diffstat (limited to 'src/Xmobar/Plugins/Monitors/Top.hs')
-rw-r--r-- | src/Xmobar/Plugins/Monitors/Top.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Xmobar/Plugins/Monitors/Top.hs b/src/Xmobar/Plugins/Monitors/Top.hs index e99ec3b..3bfe6fd 100644 --- a/src/Xmobar/Plugins/Monitors/Top.hs +++ b/src/Xmobar/Plugins/Monitors/Top.hs @@ -3,7 +3,7 @@ ----------------------------------------------------------------------------- -- | -- Module : Plugins.Monitors.Top --- Copyright : (c) 2010, 2011, 2012, 2013, 2014, 2018 Jose A Ortega Ruiz +-- Copyright : (c) 2010, 2011, 2012, 2013, 2014, 2018, 2022 Jose A Ortega Ruiz -- License : BSD-style (see LICENSE) -- -- Maintainer : Jose A Ortega Ruiz <jao@gnu.org> @@ -127,7 +127,8 @@ runTop tref scale _ = do (no, ps, ms) <- io $ topProcesses tref scale pstr <- showTimeInfos ps mstr <- showMemInfos ms - parseTemplate $ show no : concat (zipWith (++) pstr mstr) ++ repeat "N/A" + na <- getConfigValue naString + parseTemplate $ show no : concat (zipWith (++) pstr mstr) ++ repeat na startTop :: [String] -> Int -> (String -> IO ()) -> IO () startTop a r cb = do |