summaryrefslogtreecommitdiffhomepage
path: root/src/Plugins/Monitors/Cpu.hs
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-12-22 00:56:30 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-12-22 00:56:30 +0100
commitdafc31f475ff93bf3f5af881231ef74aaa003138 (patch)
tree803f3ad88a9403bc37e76e320ae581ef27004287 /src/Plugins/Monitors/Cpu.hs
parentfac7217f853cb8ea7724cda58adef13a385f3770 (diff)
downloadxmobar-dafc31f475ff93bf3f5af881231ef74aaa003138.tar.gz
xmobar-dafc31f475ff93bf3f5af881231ef74aaa003138.tar.bz2
Same infinite loop for Cpu
Diffstat (limited to 'src/Plugins/Monitors/Cpu.hs')
-rw-r--r--src/Plugins/Monitors/Cpu.hs2
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