X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Flinks.pl;h=b1737145e9fc7edf96e923292d658966098755d4;hb=c3505bcfc922cd712bad2c20b3479cf8d1dc54fe;hp=078d5bc83eedfd5917a28fd86f223463b1845d83;hpb=b26c5204bc58c12fc4d61725ba4f1cfc1a38be45;p=spider.git diff --git a/cmd/links.pl b/cmd/links.pl index 078d5bc8..b1737145 100644 --- a/cmd/links.pl +++ b/cmd/links.pl @@ -7,7 +7,7 @@ # and subsequently plagerized by K1XX. # # 16-Jun-2000 -# $Id: links.pl +# # my $self = shift; @@ -15,8 +15,8 @@ my $dxchan; my @out; my $nowt = time; -push @out, " Ave Obs Ping Sec Since"; -push @out, " Callsign Type Started RTT count Int. Last Ping"; +push @out, " Ave Obs Ping Next Filters"; +push @out, " Callsign Type Started RTT Count Int. Ping Iso? In Out PC92?"; foreach $dxchan ( sort {$a->call cmp $b->call} DXChannel::get_all_nodes ) { my $call = $dxchan->call(); @@ -25,15 +25,29 @@ foreach $dxchan ( sort {$a->call cmp $b->call} DXChannel::get_all_nodes ) { my $sort; my $name = $dxchan->user->name || " "; my $obscount = $dxchan->nopings; - my $lastt = $nowt - ($dxchan->lastping); + my $lastt = $dxchan->pingint - ($nowt - $dxchan->lastping); my $pingint = $dxchan->pingint; my $ping = $dxchan->is_node && $dxchan != $main::me ? sprintf("%8.2f",$dxchan->pingave) : ""; + my $iso = $dxchan->isolate ? 'Y' :' '; + my ($fin, $fout, $pc92) = (' ', ' ', ' '); + if ($dxchan->do_pc9x) { + $pc92 = 'Y'; + } else { + my $f; + if ($f = $dxchan->inroutefilter) { + $fin = $dxchan->inroutefilter =~ /node_default/ ? 'D' : 'Y'; + } + if ($f = $dxchan->routefilter) { + $fout = $dxchan->routefilter =~ /node_default/ ? 'D' : 'Y'; + } + } + $sort = 'ANEA' if $dxchan->is_aranea; $sort = "DXSP" if $dxchan->is_spider; $sort = "CLX " if $dxchan->is_clx; $sort = "DXNT" if $dxchan->is_dxnet; $sort = "AR-C" if $dxchan->is_arcluster; $sort = "AK1A" if $dxchan->is_ak1a; - push @out, sprintf "%10s $sort $t$ping $obscount %5d %5d", $call, $pingint, $lastt; + push @out, sprintf "%10s $sort $t$ping $obscount %5d %5d $iso $fin $fout $pc92", $call, $pingint, $lastt; } return (1, @out)