| line |
true |
false |
branch |
|
96
|
1 |
0 |
unless exists $ps->{'current'} |
|
98
|
0 |
1 |
unless open $f, '<', '/proc/stat' |
|
102
|
0 |
1 |
unless $stat =~ /cpu\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)/i |
|
108
|
1 |
2 |
if ($uhz < $jiftab[$i + 1]) |
|
111
|
0 |
1 |
if ($diflo < $difhi) { } |
|
119
|
0 |
1 |
if ($i == @jiftab) |
|
168
|
0 |
1 |
if (exists $ps->{'last'}) { } |
|
169
|
0 |
0 |
if (exists $ps->{'current'}) { } |
|
177
|
0 |
1 |
unless open $f, '<', '/proc/uptime' |
|
180
|
1 |
0 |
$ps->{'current'}{'uptime'} ? : |
|
230
|
0 |
0 |
ref $_[0] ? : |
|
231
|
0 |
0 |
unless @{$pids;} |
|
235
|
0 |
0 |
unless open $f, '<', "/proc/$pid/stat" |
|
236
|
0 |
0 |
if (exists $ps->{'lastat'}{$pid}) { } |
|
303
|
0 |
0 |
unless exists $ps->{'curstat'} and keys %{$$ps{'curstat'};} |
|
331
|
0 |
0 |
ref $_[0] ? : |
|
332
|
0 |
0 |
unless @{$pids;} |
|
335
|
0 |
0 |
unless exists $ps->{'jiffy'} |
|
380
|
0 |
0 |
ref $_[0] ? : |
|
381
|
0 |
0 |
unless @{$pids;} |
|
392
|
0 |
0 |
if (exists $ps->{'lastat'}{$pid} and $ps->{'lastat'}{$pid}) { } |
|
394
|
0 |
0 |
if ($kid) |
|
422
|
0 |
0 |
ref $_[0] ? : |
|
423
|
0 |
0 |
unless @{$pids;} |
|
437
|
0 |
0 |
if exists $live->{$pid} |
|
438
|
0 |
0 |
if exists $ps->{$_}{$pid} |