X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Froute.pl;h=d055e61694a01995f9245395fc42651545917bcc;hb=b2dfa977515995b8ab19611b88cfc999ad78591b;hp=c927e8dc265c4d55ed9a7bcf7604888ad0145249;hpb=d638bda3f73da1b09d029105a0f3c95093c50df5;p=spider.git diff --git a/cmd/show/route.pl b/cmd/show/route.pl index c927e8dc..d055e616 100644 --- a/cmd/show/route.pl +++ b/cmd/show/route.pl @@ -17,7 +17,9 @@ foreach $l (@list) { my $ref = Route::get($l); if ($ref) { my $parents = $ref->isa('Route::Node') ? $l : join(',', $ref->parents); - push @out, $self->msg('route', $l, $parents, join(',', map {$_->call} Route::findroutes($l))); + 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); }