summaryrefslogtreecommitdiffhomepage
path: root/Plugins/Monitors/CpuFreq.hs
diff options
context:
space:
mode:
authorJuraj Hercek <juhe_haskell@hck.sk>2007-12-23 00:14:19 +0100
committerJuraj Hercek <juhe_haskell@hck.sk>2007-12-23 00:14:19 +0100
commit81a2809683ceda6475d6d42df644dce102dd290b (patch)
tree1253d1e659cde402e22f5608426de9d6f7fe80fd /Plugins/Monitors/CpuFreq.hs
parent112d0191be18b474c750664f683e17c9e919d020 (diff)
downloadxmobar-81a2809683ceda6475d6d42df644dce102dd290b.tar.gz
xmobar-81a2809683ceda6475d6d42df644dce102dd290b.tar.bz2
Added documentation.
- added Thermal, CoreTemp, CpuFreq documentation to README file - added haddock documentation darcs-hash:20071222231419-f49a6-beadaa214bd80a9eb12f568dbff8dcf0d88ecfe7.gz
Diffstat (limited to 'Plugins/Monitors/CpuFreq.hs')
-rw-r--r--Plugins/Monitors/CpuFreq.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Plugins/Monitors/CpuFreq.hs b/Plugins/Monitors/CpuFreq.hs
index 0258037..0bd99bb 100644
--- a/Plugins/Monitors/CpuFreq.hs
+++ b/Plugins/Monitors/CpuFreq.hs
@@ -17,11 +17,18 @@ module Plugins.Monitors.CpuFreq where
import Plugins.Monitors.Common
import Plugins.Monitors.CoreCommon
+-- |
+-- Cpu frequency default configuration. Default template contains only one
+-- core frequency, user should specify custom template in order to get more
+-- cpu frequencies.
cpuFreqConfig :: IO MConfig
cpuFreqConfig = mkMConfig
"Freq: <core0>GHz" -- template
(zipWith (++) (repeat "core") (map show [0 :: Int ..])) -- available
-- replacements
+
+-- |
+-- Function retrieves monitor string holding the cpu frequency (or frequencies)
runCpuFreq :: [String] -> Monitor String
runCpuFreq _ = do
let dir = "/sys/devices/system/cpu"