X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fnode.pl;h=4e8125514c48a73dddc7d683e246304490151641;hb=46f7bad38aa5081e9d53671e52d7f6a461b3b292;hp=063e2e4288942785e29e909b6158723d79caaa10;hpb=4888cab7f56fbed40bf28477fe3f9c0ee9977a7c;p=spider.git diff --git a/cmd/show/node.pl b/cmd/show/node.pl index 063e2e42..4e812551 100644 --- a/cmd/show/node.pl +++ b/cmd/show/node.pl @@ -11,7 +11,7 @@ # # Copyright (c) 2000 Dirk Koopman G1TLH # -# $Id$ +# # my ($self, $line) = @_; @@ -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; @@ -69,6 +69,8 @@ foreach $call (@call) { my ($major, $minor, $subs) = unpack("AAA*", $ver) if $ver; if ($uref->is_spider) { + $ver /= 100 if $ver > 5400; + $ver -= 53 if $ver > 54; $build = "build: " . $uref->build if $uref->build; push @out, $self->msg('snode2', $pcall, $sort, "$ver $build"); } else {