1. I believe I have fixed all the login/logout 'broken pipe' errors
[spider.git] / cmd / links.pl
1 #
2 # links : which are active
3 # a complete list of currently connected linked nodes
4 #
5 # Created by Iain Philipps G0RDI, based entirely on
6 # who.pl, which is Copyright (c) 1999 Dirk Koopman G1TLH
7 #
8 # 16-Jun-2000
9 # $Id: links.pl
10
11
12 my $self = shift;
13 my $dxchan;
14 my @out;
15
16 push @out, "  Callsign   Started                 Ave RTT";
17
18 foreach $dxchan ( sort {$a->call cmp $b->call} DXChannel::get_all_ak1a ) {
19         my $call = $dxchan->call();
20         my $t = cldatetime($dxchan->startt);
21         my $name = $dxchan->user->name || " ";
22         my $ping = $dxchan->is_node && $dxchan != $DXProt::me ? sprintf("%8.2f",
23                                                                                                                                         $dxchan->pingave) : "";
24         push @out, sprintf "%10s $t %-6.6s $ping", $call;
25
26 }
27
28 return (1, @out)
29
30
31
32