projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed R and SFI around in mrtg.pl
[spider.git]
/
cmd
/
show
/
route.pl
diff --git
a/cmd/show/route.pl
b/cmd/show/route.pl
index dda65bd9944caf6ab350e587ba30be92f8d42290..d4120e0c484a5244774388a81ca3aba357e68c4f 100644
(file)
--- a/
cmd/show/route.pl
+++ b/
cmd/show/route.pl
@@
-12,16
+12,24
@@
my @out;
return (1, $self->msg('e6')) unless @list;
return (1, $self->msg('e6')) unless @list;
+use RouteDB;
+
my $l;
foreach $l (@list) {
my $ref = Route::get($l);
if ($ref) {
my $parents = $ref->isa('Route::Node') ? $l : join(',', $ref->parents);
my $l;
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);
+ push @out, $self->msg('route', $l, $parents, join(',', map {$_->call} $ref->alldxchan));
} else {
push @out, $self->msg('e7', $l);
}
} else {
push @out, $self->msg('e7', $l);
}
+ my @in = RouteDB::_sorted($l);
+ if (@in) {
+ push @out, "Learned Routes:";
+ for (@in) {
+ push @out, "$l via $_->{call} count: $_->{count} last heard: " . atime($_->{t});
+ }
+ }
}
return (1, @out);
}
return (1, @out);