projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
59e7157
)
add ... for more than 4 routes in sh/route
author
dirk
<dirk@server.easyspeedy.com>
Tue, 24 Jun 2008 23:02:59 +0000
(
00:02
+0100)
committer
dirk
<dirk@server.easyspeedy.com>
Tue, 24 Jun 2008 23:02:59 +0000
(
00:02
+0100)
cmd/show/route.pl
patch
|
blob
|
history
diff --git
a/cmd/show/route.pl
b/cmd/show/route.pl
index d055e61694a01995f9245395fc42651545917bcc..768c3961e7976e0113db2d530961db3975746a08 100644
(file)
--- 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);
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);
push @out, $self->msg('route', $l, $parents, join(',', @n));
} else {
push @out, $self->msg('e7', $l);