]> dxcluster.net Git - spider.git/commitdiff
added rtt to who
authordjk <djk>
Fri, 19 Nov 1999 12:27:36 +0000 (12:27 +0000)
committerdjk <djk>
Fri, 19 Nov 1999 12:27:36 +0000 (12:27 +0000)
cmd/who.pl

index d001d9c3efde80d71364dd02fec30a114293a877..beea0071703f1d5be284d080d9407c4da1b46bfd 100644 (file)
@@ -18,7 +18,9 @@ foreach $dxchan ( sort {$a->call cmp $b->call} DXChannel::get_all ) {
        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 $ping = $dxchan->is_ak1a ? sprintf("(rtt %.2f secs)", $dxchan->pingave) : "";
+       $ping = "" if $dxchan->call eq $main::mycall;
+       push @out, sprintf "%10s $sort $t $name $ping", $call;
 }
 
 return (1, @out)