4 # Copyright (c) 2001 Dirk Koopman G1TLH
9 my ($self, $line) = @_;
10 my @f = split /\s+/, $line;
16 push @dxcc, (61..67) if $self->dxcc >= 61 && $self->dxcc < 67;
17 push @dxcc, $self->dxcc unless @dxcc;
19 my $now = Julian::Day->new(time())->sub(1);
23 # generate the spot list
24 for ($i = 0; $i < $days; $i++) {
25 my $fh = $Spot::statp->open($now); # get the next file
28 $fh = $Spot::statp->open($now);
33 next if $l[0] eq 'TOTALS';
34 next unless grep $l[2] eq $_, @dxcc;
35 my $ref = $list{$l[0]} || [0,0,0,0,0,0,0,0,0,0];
37 foreach my $item (@l[12..14, 16..22]) {
42 $list{$l[0]} = $ref if $ref->[0];
51 push @out, $self->msg('statvhft', join ',', @dxcc);
52 push @out, sprintf "%10s|%4s|%4s|%4s|%4s|%4s|%4s|%4s|%4s|%4s|%4s|", qw(Callsign Tot 6m 4m 2m 70cm 23cm 13cm 9cm 6cm 3cm);
54 for (sort {$list{$b}->[0] <=> $list{$a}->[0] || $a cmp $b} keys %list) {
57 my @list = (sprintf "%10s", $_);
58 foreach my $j (0..9) {
62 $r = sprintf("%4d", $r);
68 push @out, join('|', @list, "");
69 last if $limit && $nocalls >= $limit;
72 $nocalls = sprintf "%10s", "$nocalls calls";
73 @tot = map {$_ ? sprintf("%4d", $_) : ' ' } @tot;
74 push @out, join('|', $nocalls, @tot, "");