taffybar-2.1.1: 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.Taffybar.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.Taffybar.Information.StreamInfo module. And also provides information about the temperature of cores. (Now supports only physical cpu).

Synopsis

Documentation

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

parse :: String -> [(String, [Int])] Source #

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

getCPUTemperatureDirectory :: IO FilePath Source #

Get the directory in which core temperature files are kept.