From 0e26aa78a0b6a5dbcdf780a406335e94ddcd2f93 Mon Sep 17 00:00:00 2001 From: dirk Date: Wed, 25 Jun 2008 00:02:59 +0100 Subject: [PATCH] add ... for more than 4 routes in sh/route --- cmd/show/route.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/show/route.pl b/cmd/show/route.pl index d055e616..768c3961 100644 --- a/cmd/show/route.pl +++ b/cmd/show/route.pl @@ -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); -- 2.43.0