| line |
true |
false |
branch |
|
11
|
2 |
0 |
if (-e "$main::RealBin/../dist.ini") |
|
12
|
0 |
2 |
if $ENV{'DEBUG'} |
|
26
|
0 |
2 |
unless &GetOptions("t|tab", \$opt_tab, "u|user=s", \$opt_user, "version", sub {
say "slurm-load v", $NBI::Slurm::VERSION;
exit 0;
}
, "h|help", \$opt_help) |
|
29
|
1 |
1 |
if $opt_help |
|
32
|
0 |
2 |
unless (_has_command($cmd)) |
|
42
|
1 |
0 |
if ($opt_tab) { } |
|
53
|
0 |
1 |
if ($? != 0) |
|
59
|
0 |
5 |
unless $line =~ /\S/u |
|
61
|
0 |
5 |
unless defined $partition and defined $nodes and defined $state |
|
78
|
0 |
1 |
if defined $user |
|
80
|
0 |
1 |
if ($? != 0) |
|
86
|
0 |
3 |
unless $line =~ /\S/u |
|
88
|
0 |
3 |
unless defined $partition and defined $state and defined $nodes |
|
120
|
0 |
0 |
unless load_pct($partitions->{$b}) <=> load_pct($partitions->{$a}) |
|
164
|
1 |
0 |
if (@rows > 1) |
|
189
|
0 |
5 |
if $up <= 0 |
|
199
|
2 |
3 |
if $state =~ /^idle/u |
|
200
|
1 |
2 |
if $state =~ /^mix/u |
|
201
|
1 |
1 |
if $state =~ /^alloc/u |
|
202
|
1 |
0 |
if $state =~ /^(down|drain|drng|drained|fail)/u |
|
210
|
1 |
2 |
if $state eq "PD" |
|
211
|
2 |
0 |
if $state =~ /^(R|CG|CF|SI|SO|ST)$/u |
|
228
|
0 |
0 |
if not defined $widths[$i] or $len > $widths[$i] |
|
236
|
0 |
0 |
$i == 0 ? : |
|
240
|
0 |
0 |
if ($idx == 0) |
|
247
|
0 |
0 |
if ($row->[0] eq 'TOTAL') { } |