| 1 | package App::RedisTop::Component::CPU; | ||
| 2 | 2 | ▶ | use base 'App::RedisTop::Component'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 4 | 1 | my $class = shift; | |
| 5 | 1 | my $self = bless { | |
| 6 | group => 'cpu', | ||
| 7 | items => [ | ||
| 8 | { name => 'sys', stat_key => 'used_cpu_sys', diff => 1 }, | ||
| 9 | { name => 'usr', stat_key => 'used_cpu_user', diff => 1 }, | ||
| 10 | ], | ||
| 11 | width => 6, | ||
| 12 | round => 1, | ||
| 13 | @_, | ||
| 14 | }, $class; | ||
| 15 | } | ||
| 16 | |||
| 17 | 2 | 1; | |