summaryrefslogtreecommitdiffhomepage
path: root/Monitors/Net.hs
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@ing.unitn.it>2007-07-08 12:10:33 +0200
committerAndrea Rossato <andrea.rossato@ing.unitn.it>2007-07-08 12:10:33 +0200
commit39820c0004230f4df7e256bc83ec1c9578f94a8d (patch)
treede263f0d05be28e81d2acb90cfb7a6ab589f93b9 /Monitors/Net.hs
parentc88df2b5d3cabc8e8171a422a48d0f811549f512 (diff)
downloadxmobar-39820c0004230f4df7e256bc83ec1c9578f94a8d.tar.gz
xmobar-39820c0004230f4df7e256bc83ec1c9578f94a8d.tar.bz2
monitors are now run internally
darcs-hash:20070708101033-d6583-495a895544a1fc84d4d69f52a7f26dd42b6c8af4.gz
Diffstat (limited to 'Monitors/Net.hs')
-rw-r--r--Monitors/Net.hs13
1 files changed, 8 insertions, 5 deletions
diff --git a/Monitors/Net.hs b/Monitors/Net.hs
index 2c7e2f0..addee47 100644
--- a/Monitors/Net.hs
+++ b/Monitors/Net.hs
@@ -1,6 +1,6 @@
-----------------------------------------------------------------------------
-- |
--- Module : Monitors.Cpu
+-- Module : Monitors.Net
-- Copyright : (c) Andrea Rossato
-- License : BSD-style (see LICENSE)
--
@@ -12,7 +12,7 @@
--
-----------------------------------------------------------------------------
-module Main where
+module Monitors.Net where
import Monitors.Common
@@ -28,8 +28,8 @@ data NetDev = NA
interval :: Int
interval = 500000
-monitorConfig :: IO MConfig
-monitorConfig =
+netConfig :: IO MConfig
+netConfig =
do lc <- newIORef "#BFBFBF"
l <- newIORef 0
nc <- newIORef "#00FF00"
@@ -94,10 +94,13 @@ runNet nd =
_ -> return $ NA
printNet n
+
package :: String
package = "xmb-net"
+{-
main :: IO ()
main =
do let f = return "No device specified"
- runMonitor monitorConfig f runNet
+ runMonitor netConfig f runNet
+-} \ No newline at end of file