rearranged RTT display in who
authordjk <djk>
Fri, 19 Nov 1999 12:33:04 +0000 (12:33 +0000)
committerdjk <djk>
Fri, 19 Nov 1999 12:33:04 +0000 (12:33 +0000)
Changes
cmd/who.pl

diff --git a/Changes b/Changes
index ca7477c9b8ad48cde624f574c085c90e8198b688..e04313598538149d6fcdaec894790ab73bdbb0d4 100644 (file)
--- 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). 
index beea0071703f1d5be284d080d9407c4da1b46bfd..617799419b97689c54243adee152a914562f2749 100644 (file)
@@ -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)