diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-12-22 00:56:30 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-12-22 00:56:30 +0100 |
commit | dafc31f475ff93bf3f5af881231ef74aaa003138 (patch) | |
tree | 803f3ad88a9403bc37e76e320ae581ef27004287 /src/Plugins/Monitors | |
parent | fac7217f853cb8ea7724cda58adef13a385f3770 (diff) | |
download | xmobar-dafc31f475ff93bf3f5af881231ef74aaa003138.tar.gz xmobar-dafc31f475ff93bf3f5af881231ef74aaa003138.tar.bz2 |
Same infinite loop for Cpu
Diffstat (limited to 'src/Plugins/Monitors')
-rw-r--r-- | src/Plugins/Monitors/Cpu.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Plugins/Monitors/Cpu.hs b/src/Plugins/Monitors/Cpu.hs index ab89246..8715245 100644 --- a/src/Plugins/Monitors/Cpu.hs +++ b/src/Plugins/Monitors/Cpu.hs @@ -39,7 +39,7 @@ parseCPU = return percent formatCpu :: [Float] -> Monitor [String] -formatCpu [] = return $ repeat "" +formatCpu [] = return $ replicate 6 "" formatCpu xs = do let t = foldr (+) 0 $ take 3 xs b <- showPercentBar (100 * t) t |