From: djk Date: Fri, 19 Nov 1999 12:33:04 +0000 (+0000) Subject: rearranged RTT display in who X-Git-Tag: R_1_35~15 X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=a03b3bcc5882368856ba0aa5e572deb150f50d65;p=spider.git rearranged RTT display in who --- diff --git a/Changes b/Changes index ca7477c9..e0431359 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,6 @@ 19Nov99======================================================================= 1. Added new version of sh/sun and also sh/moon from Steve K9AN +2. Added rtt to who. 18Nov99======================================================================= 1. Added ping obs counter together with Time::HiRes timers. This will dis- connect nodes that fail to respond to 3 ping requests (on the 4th attempt). diff --git a/cmd/who.pl b/cmd/who.pl index beea0071..61779941 100644 --- a/cmd/who.pl +++ b/cmd/who.pl @@ -11,16 +11,16 @@ 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 || " "; - my $ping = $dxchan->is_ak1a ? sprintf("(rtt %.2f secs)", $dxchan->pingave) : ""; + my $ping = $dxchan->is_ak1a ? sprintf("%6.2f", $dxchan->pingave) : ""; $ping = "" if $dxchan->call eq $main::mycall; - push @out, sprintf "%10s $sort $t $name $ping", $call; + push @out, sprintf "%10s $sort $t %-15s $ping", $call, $name; } return (1, @out)