diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-12-11 20:33:48 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-12-11 20:33:48 +0100 |
commit | 699033f96984b23855257566477f211cd49b1182 (patch) | |
tree | 2f35c6f472afed0e8174576e4b1c36178022b889 /Plugins/Monitors/MultiCpu.hs | |
parent | f03a4f2ee1cdb117413d6e968d711439b96c7e37 (diff) | |
parent | 096aee3a1667e056fe906967cc2b078e8122e2b4 (diff) | |
download | xmobar-699033f96984b23855257566477f211cd49b1182.tar.gz xmobar-699033f96984b23855257566477f211cd49b1182.tar.bz2 |
Merge branch 'dev/code-cleanups' of https://github.com/mathstuf/xmobar into mathstuf-dev/code-cleanups
Diffstat (limited to 'Plugins/Monitors/MultiCpu.hs')
-rw-r--r-- | Plugins/Monitors/MultiCpu.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Plugins/Monitors/MultiCpu.hs b/Plugins/Monitors/MultiCpu.hs index 17620d5..492ad96 100644 --- a/Plugins/Monitors/MultiCpu.hs +++ b/Plugins/Monitors/MultiCpu.hs @@ -50,7 +50,7 @@ percent b a = if tot > 0 then map (/ tot) $ take 4 dif else [0, 0, 0, 0] tot = foldr (+) 0 dif formatMultiCpus :: [[Float]] -> Monitor [String] -formatMultiCpus [] = showPercentsWithColors $ replicate 15 0.0 +formatMultiCpus [] = return $ repeat "" formatMultiCpus xs = fmap concat $ mapM formatCpu xs formatCpu :: [Float] -> Monitor [String] |