From 39820c0004230f4df7e256bc83ec1c9578f94a8d Mon Sep 17 00:00:00 2001 From: Andrea Rossato Date: Sun, 8 Jul 2007 12:10:33 +0200 Subject: monitors are now run internally darcs-hash:20070708101033-d6583-495a895544a1fc84d4d69f52a7f26dd42b6c8af4.gz --- Monitors/Cpu.hs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Monitors/Cpu.hs') diff --git a/Monitors/Cpu.hs b/Monitors/Cpu.hs index ed5c11e..6f9b4fd 100644 --- a/Monitors/Cpu.hs +++ b/Monitors/Cpu.hs @@ -12,14 +12,14 @@ -- ----------------------------------------------------------------------------- -module Main where +module Monitors.Cpu where import Monitors.Common import qualified Data.ByteString.Lazy.Char8 as B import Data.IORef -monitorConfig :: IO MConfig -monitorConfig = +cpuConfig :: IO MConfig +cpuConfig = do lc <- newIORef "#BFBFBF" l <- newIORef 2 nc <- newIORef "#00FF00" @@ -65,7 +65,9 @@ runCpu _ = l <- formatCpu c parseTemplate l +{- main :: IO () main = do let af = runCpu [] - runMonitor monitorConfig af runCpu + runMonitor cpuConfig af runCpu +-} \ No newline at end of file -- cgit v1.2.3