line |
true |
false |
branch |
57
|
0 |
3 |
ref $_[0] ? : |
132
|
2 |
0 |
$file->{'path'} ? : |
133
|
0 |
2 |
unless open my $fh, '<', $filename |
137
|
30 |
60 |
if ($line =~ /^((?:Mem|Swap)(?:Total|Free)|Buffers|Cached|SwapCached|Active|Inactive|
Dirty|Writeback|Mapped|Slab|Commit(?:Limit|ted_AS)):\s*(\d+)/x) { } |
|
0 |
60 |
elsif ($line =~ /^Inact_(?:dirty|laundry|clean):\s*(\d+)/) { } |
165
|
0 |
2 |
if (not $meminfo{'swaptotal'}) { } |
193
|
1 |
0 |
$file->{'path'} ? : |
194
|
0 |
1 |
unless open my $fh, '<', $filename |
198
|
45 |
0 |
if ($line =~ /$self->{'regex'}/) |
204
|
0 |
45 |
if ($line =~ /$self->{'inactive_regex'}/) |
222
|
0 |
1 |
if (not $meminfo{'swaptotal'}) { } |