X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fnode.pl;h=4e8125514c48a73dddc7d683e246304490151641;hb=fb9c2ab04977b4e685b0eca3b2a2d04a77f65f4b;hp=a1ab8eca18136b25070ca697901d0a3def9c98b7;hpb=0ae2756b512f3783efe7f7e3c124b0a074227e81;p=spider.git diff --git a/cmd/show/node.pl b/cmd/show/node.pl index a1ab8eca..4e812551 100644 --- a/cmd/show/node.pl +++ b/cmd/show/node.pl @@ -23,7 +23,9 @@ my @out; my $count; # search thru the user for nodes -if ($call[0] eq 'ALL') { +if (@call == 0) { + @call = map {$_->call} DXChannel::get_all_nodes(); +} elsif ($call[0] eq 'ALL') { shift @call; my ($action, $key, $data) = (0,0,0); for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) { @@ -31,9 +33,7 @@ if ($call[0] eq 'ALL') { push @call, $key; ++$count; } - } -} elsif (@call == 0) { - @call = map {$_->call} DXChannel::get_all_nodes(); + } } my $call;