X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fwho.pl;h=c5d665d0554411ad2fbc4e28f35b066aa3abd5d1;hb=1f3035508fe4dacf899742db444ade501091e7de;hp=34e2d0a4369b354a2f80865373d49978c84615ba;hpb=5acd1be649672f6e5bd2b4a6772b51cd935ebda9;p=spider.git diff --git a/cmd/who.pl b/cmd/who.pl index 34e2d0a4..c5d665d0 100644 --- a/cmd/who.pl +++ b/cmd/who.pl @@ -11,14 +11,15 @@ my $self = shift; my $dxchan; my @out; -push @out, " Callsign Type Started Name"; +push @out, " Callsign Type Started Name Ave RTT"; foreach $dxchan ( sort {$a->call cmp $b->call} DXChannel::get_all ) { my $call = $dxchan->call(); - my $t = cldatetime($dxchan->user->lastin); - my $sort = $dxchan->is_ak1a() ? "NODE" : "USER"; - my $name = $dxchan->user->name; - push @out, sprintf "%10s $sort $t $name", $call; + my $t = cldatetime($dxchan->startt); + my $sort = $dxchan->is_node ? "NODE" : "USER"; + my $name = $dxchan->user->name || " "; + my $ping = $dxchan->is_node && $dxchan != $DXProt::me ? sprintf("%8.2f", $dxchan->pingave) : ""; + push @out, sprintf "%10s $sort $t %-18.18s $ping", $call, $name; } return (1, @out)