X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Froute.pl;h=d4120e0c484a5244774388a81ca3aba357e68c4f;hb=611e9ea5204765638eceecbd8e1dd04a4f10a1be;hp=4ebebde3242dd799c8568afc2b348af6ff355aa1;hpb=85ea68ecce028876ab0d60d622c1d92c95bb8747;p=spider.git diff --git a/cmd/show/route.pl b/cmd/show/route.pl index 4ebebde3..d4120e0c 100644 --- a/cmd/show/route.pl +++ b/cmd/show/route.pl @@ -12,6 +12,8 @@ my @out; return (1, $self->msg('e6')) unless @list; +use RouteDB; + my $l; foreach $l (@list) { my $ref = Route::get($l); @@ -21,6 +23,13 @@ foreach $l (@list) { } 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);