diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-06-06 02:28:26 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-06-06 02:28:26 +0200 |
commit | 4a6fecc5da9b2a5b00c5a287c66839de55a68c23 (patch) | |
tree | 257d328933636f22cc2c0bc2f24b48937a3ca2b8 /src/plugins/cpu.py | |
parent | license lunar under agpl (diff) | |
download | xpybar-4a6fecc5da9b2a5b00c5a287c66839de55a68c23.tar.gz xpybar-4a6fecc5da9b2a5b00c5a287c66839de55a68c23.tar.bz2 xpybar-4a6fecc5da9b2a5b00c5a287c66839de55a68c23.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/plugins/cpu.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/cpu.py b/src/plugins/cpu.py index 2305e89..3b23ecd 100644 --- a/src/plugins/cpu.py +++ b/src/plugins/cpu.py @@ -22,22 +22,22 @@ class CPU: ''' Retrieve processor statistics - @variable cpu_total:list<int> Accumulative processors statistics - @variable cpus:list<list<int>> Individual processors statistics - @variable intr:list<int> Counts of individual interrupts serviced since boot time - @variable intr_total:int Sum of `intr` - @variable ctxt:int The number of context switches that the system underwent. - @variable btime:int Boot time, in seconds since the Epoch, 1970-01-01 00:00:00 UTC - @variable processes:int Number of forks and clones (and similar) created since boot - @variable procs_running:int? Number of processes in runnable state (linux>=2.5.45) - @variable procs_blocked:int? Number of processes blocked waiting for I/O to complete (linux>=2.5.45) - @variable softirq:list<int>? Counts of individual software IRQ since boot time - @variable softirq_total:int? Sum of `softirq` + @variable cpu_total:list<int> Accumulative processors statistics + @variable cpus:list<list<int>> Individual processors statistics + @variable intr:list<int> Counts of individual interrupts serviced since boot time + @variable intr_total:int Sum of `intr` + @variable ctxt:int The number of context switches that the system underwent. + @variable btime:int Boot time, in seconds since the Epoch, 1970-01-01 00:00:00 UTC + @variable processes:int Number of forks and clones (and similar) created since boot + @variable procs_running:int? Number of processes in runnable state (linux>=2.5.45) + @variable procs_blocked:int? Number of processes blocked waiting for I/O to complete (linux>=2.5.45) + @variable softirq:list<int>? Counts of individual software IRQ since boot time + @variable softirq_total:int? Sum of `softirq` @variable fields:dict<str, list<int>> Table with all information ''' - # These contants are index in the CPU statistcs, use for example `CPU_instance.cpu[CPU.user]` + # These constants are index in the CPU statistcs, use for example `CPU_instance.cpu[CPU.user]` user = 0 ''' |