]> dxcluster.net Git - spider.git/commitdiff
add ... for more than 4 routes in sh/route
authordirk <dirk@server.easyspeedy.com>
Tue, 24 Jun 2008 23:02:59 +0000 (00:02 +0100)
committerdirk <dirk@server.easyspeedy.com>
Tue, 24 Jun 2008 23:02:59 +0000 (00:02 +0100)
cmd/show/route.pl

index d055e61694a01995f9245395fc42651545917bcc..768c3961e7976e0113db2d530961db3975746a08 100644 (file)
@@ -18,7 +18,7 @@ foreach $l (@list) {
        if ($ref) {
                my $parents = $ref->isa('Route::Node') ? $l : join(',', $ref->parents);
                my @n = map { $_->[1]->call . '(' .  (100 - $_->[0]) . ')' } Route::findroutes($l);
-               @n = @n[0,1,2,3],'...' if @n > 4;
+               @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);