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

Copyright | (c) José A. Romero L.
License | BSD3-style (see LICENSE)
Maintainer | José A. Romero L. <escherdragon@gmail.com>
Stability | unstable
Portability | unportable
Safe Haskell | Safe
Language | Haskell2010

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

- getCPULoad :: String -> IO [Double]
- getCPUInfo :: String -> IO [Int]
- getCPUTemp :: [String] -> IO [Int]

# 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.