| 1 | package App::RedisTop::Component::Connection; | ||
| 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 | |||
| 6 | 1 | my $self = bless { | |
| 7 | group => 'conn', | ||
| 8 | items => [ | ||
| 9 | { name => 'total/s', stat_key => 'total_connections_received', diff => 1 }, | ||
| 10 | { name => 'clients', stat_key => 'connected_clients', }, | ||
| 11 | ], | ||
| 12 | width => 9, | ||
| 13 | unit => 1, | ||
| 14 | total => 1, | ||
| 15 | @_, | ||
| 16 | }, $class; | ||
| 17 | } | ||
| 18 | |||
| 19 | 2 | 1; | |