X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Froute.pl;h=768c3961e7976e0113db2d530961db3975746a08;hb=112baf5b4c3dd1f4897a15f2414befab7d83b309;hp=dda65bd9944caf6ab350e587ba30be92f8d42290;hpb=9516ccc97c92ca802204b059a9a4baab04ff3b65;p=spider.git diff --git a/cmd/show/route.pl b/cmd/show/route.pl index dda65bd9..768c3961 100644 --- a/cmd/show/route.pl +++ b/cmd/show/route.pl @@ -3,7 +3,7 @@ # # Copyright (c) 2001 Dirk Koopman G1TLH # -# $Id$ +# # my ($self, $line) = @_; @@ -17,8 +17,9 @@ foreach $l (@list) { my $ref = Route::get($l); if ($ref) { my $parents = $ref->isa('Route::Node') ? $l : join(',', $ref->parents); - my $dxchan = $ref->dxchan; - push @out, $self->msg('route', $l, $parents, $dxchan->call); + my @n = map { $_->[1]->call . '(' . (100 - $_->[0]) . ')' } Route::findroutes($l); + @n = (@n[0,1,2,3],'...') if @n > 4; + push @out, $self->msg('route', $l, $parents, join(',', @n)); } else { push @out, $self->msg('e7', $l); }