taffybar-0.4.6: A desktop bar similar to xmobar, but with more GUI

Copyright(c) José A. Romero L.
LicenseBSD3-style (see LICENSE)
MaintainerJosé A. Romero L. <escherdragon@gmail.com>
Stabilityunstable
Portabilityunportable
Safe HaskellSafe
LanguageHaskell2010

System.Information.CPU2

Description

Provides information about used CPU times, obtained from parsing the /proc/stat file using some of the facilities included in the System.Information.StreamInfo module. And also provides information about the temperature of cores. (Now supports only physical cpu).

Synopsis

Documentation

getCPULoad :: String -> IO [Double] Source

Returns a two-element list containing relative system and user times calculated using two almost simultaneous samples of the /proc/stat file for the given core (or all of them aggregated, if "cpu" is passed).

getCPUInfo :: String -> IO [Int] Source

Returns a list of 5 to 7 elements containing all the values available for the given core (or all of them aggregated, if "cpu" is passed).

getCPUTemp :: [String] -> IO [Int] Source

Returns a list containing temperatures of user given cpu cores. Use ["cpu1", "cpu2".."cpuN"] to get temperature of exact cores. Use ["cpu0"] to get common temperature.