line |
true |
false |
branch |
100
|
0 |
1 |
ref $_[0] ? : |
124
|
0 |
2 |
if ($$opts{$param}) |
162
|
5 |
0 |
$$file{'path'} ? : |
163
|
0 |
5 |
unless open my $fh, '<', $filename |
168
|
1 |
0 |
if (-x $$file{'arch'}[0]) |
180
|
1 |
0 |
$$file{'path'} ? : |
181
|
0 |
1 |
unless open my $fh, '<', $filename |
184
|
1 |
41 |
if ($line =~ /^MemTotal:\s+(\d+ \w+)/) { } |
|
1 |
40 |
elsif ($line =~ /^SwapTotal:\s+(\d+ \w+)/) { } |
203
|
1 |
0 |
$$file{'path'} ? : |
204
|
0 |
1 |
unless open my $fh, '<', $filename |
207
|
16 |
416 |
if ($line =~ /^physical\s+id\s*:\s*(\d+)/) { } |
|
16 |
400 |
elsif ($line =~ /^core\s+id\s*:\s*(\d+)/) { } |
|
16 |
384 |
elsif ($line =~ /^processor\s*:\s*\d+/) { } |
|
0 |
384 |
elsif ($line =~ /^# processors\s*:\s*(\d+)/) { } |
234
|
1 |
0 |
$$file{'path'} ? : |
235
|
0 |
1 |
unless open my $fh, '<', $filename |
239
|
2 |
1 |
if ($line =~ /^\s*(\w+):/) |
256
|
1 |
0 |
$$file{'path'} ? : |
257
|
0 |
1 |
unless open my $fh, '<', $filename |
261
|
1 |
0 |
if (not $RAWTIME || $$self{'rawtime'}) |
272
|
2 |
0 |
if $s >= 86400 and $d = sprintf('%i', $s / 86400) |
273
|
1 |
1 |
if $s >= 3600 and $h = sprintf('%i', $s / 3600) |
274
|
2 |
0 |
if $s >= 60 and $m = sprintf('%i', $s / 60) |