line |
true |
false |
branch |
32
|
3 |
3 |
if $LOAD eq 'getloadavg' |
33
|
1 |
2 |
if $LOAD eq 'proc_loadavg' |
34
|
1 |
1 |
if $LOAD eq 'uptime' |
41
|
2 |
0 |
if (-r '/proc/loadavg') |
44
|
2 |
0 |
if (defined $fh) |
47
|
2 |
0 |
if ($line =~ /^(\d+\.\d+)\s+(\d+\.\d+)\s+(\d+\.\d+)/) |
63
|
0 |
3 |
unless $UPTIME ||= which('uptime') |
67
|
0 |
3 |
if $? or not defined $line |
68
|
3 |
0 |
if ($line =~ /(\d+[,.]\d+)\s*,?\s+(\d+[,.]\d+)\s*,?\s+(\d+[,.]\d+)\s*$/m) |
80
|
7 |
0 |
if ($os =~ /^(darwin|dragonfly|(free|net|open)bsd|linux|solaris|sunos)$/) { } |
|
0 |
0 |
elsif (-r '/proc/loadavg' and $os ne 'cygwin') { } |