File Coverage

blib/lib/App/RedisTop/Component/ConnectionPer.pm
Criterion Covered Total %
statement 5 5 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod 0 1 0.0
total 7 8 87.5


line stmt bran cond sub pod time code
1             package App::RedisTop::Component::ConnectionPer;
2 2     2   1833 use base 'App::RedisTop::Component';
  2         7  
  2         452  
3             sub new {
4 1     1 0 2 my $class = shift;
5              
6 1         18 my $self = bless {
7             group => 'connper',
8             items => [
9             { name => 'conn/max', stat_key => 'connected_clients', denominator_key => 'maxclients'},
10             ],
11             width => 9,
12             total => 1,
13             @_,
14             }, $class;
15             }
16              
17             1;