2 # show the users on this cluster from the routing tables
4 # Copyright (c) 1998 Dirk Koopman G1TLH
11 my ($self, $line) = @_;
12 my @list = map { uc } split /\s+/, $line; # list of callsigns of nodes
14 if ($list[0] eq 'ALL') {
16 @list = keys %DXChannel::channels;
18 push @out, "Data Statitics IN OUT";
19 push @out, "Callsign Lines Data Lines Data";
20 push @out, "-----------------------------------------------------------------------------";
22 foreach my $call (sort @list) {
23 next if $call eq $main::mycall;
24 my $dxchan = DXChannel::get($call);
26 my $conn = $dxchan->conn;
27 push @out, sprintf("%-9.9s %16s %16s %16s %16s", $call, comma($conn->{linesin}), comma($conn->{datain}), comma($conn->{linesout}), comma($conn->{dataout}));
32 push @out, "-----------------------------------------------------------------------------" if @out > 3;
33 push @out, sprintf("%-9.9s %16s %16s %16s %16s", "TOTALS", comma($Msg::total_lines_in), comma($Msg::total_in), comma($Msg::total_lines_out), comma($Msg::total_out));
41 return scalar reverse(join(",",unpack("(A3)*", reverse int($num))));