X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fconfiguration.pl;h=09521cb6b7406e3d062994c90158243df744b857;hb=f35f0015904ecac74bd6e2ecf9cac79df0c00aaf;hp=7c4bbf27572cc5d9931f54605b6a2531e84d746d;hpb=e8b741ad3a8df323116b5a42c833080e87ad3f5b;p=spider.git diff --git a/cmd/show/configuration.pl b/cmd/show/configuration.pl index 7c4bbf27..09521cb6 100644 --- a/cmd/show/configuration.pl +++ b/cmd/show/configuration.pl @@ -20,7 +20,7 @@ if ($list[0] && $list[0] =~ /^NOD/) { my $dxchan; foreach $dxchan (@ch) { - @val = sort {$a->call cmp $b->call} grep { $_->dxchan == $dxchan } @nodes; + @val = sort {$a->call cmp $b->call} grep { $_->dxchan && $_->dxchan == $dxchan } @nodes; @l = (); my $call = $dxchan->call; $call ||= '???'; @@ -28,7 +28,7 @@ if ($list[0] && $list[0] =~ /^NOD/) { push @l, $call; foreach my $ref (@val) { - if (@l >= 5) { + if (@l >= 6) { push @out, sprintf "%-12s %-12s %-12s %-12s %-12s %-12s", @l; @l = (); push @l, ""; @@ -38,7 +38,7 @@ if ($list[0] && $list[0] =~ /^NOD/) { $s = sprintf "(%s)", $s unless $ref->here; push @l, $s; } - push @l, "" while @l < 5; + push @l, "" while @l < 6; push @out, sprintf "%-12s %-12s %-12s %-12s %-12s %-12s", @l; } } else {