4 # Copyright (c) 2001 Dirk Koopman G1TLH
9 my ($self, $line) = @_;
10 my @f = split /\s+/, $line;
15 push @dxcc, (61..67) if $self->dxcc >= 61 && $self->dxcc < 67;
16 push @dxcc, $self->dxcc unless @dxcc;
18 my $now = Julian::Day->new(time())->sub(1);
22 # generate the spot list
23 for ($i = 0; $i < $days; $i++) {
24 my $fh = $Spot::statp->open($now); # get the next file
27 $fh = $Spot::statp->open($now);
32 next if $l[0] eq 'TOTALS';
33 next unless grep $l[2] eq $_, @dxcc;
34 my $ref = $list{$l[0]} || [0,0,0,0,0,0,0,0,0,0];
36 foreach my $item (@l[3..11]) {
41 $list{$l[0]} = $ref if $ref->[0];
50 push @out, $self->msg('stathft', join(',', @dxcc));
51 push @out, sprintf "%10s|%4s|%4s|%4s|%4s|%4s|%4s|%4s|%4s|%4s|%4s|", qw(Callsign Tot 160m 80m 40m 30m 20m 17m 15m 12m 10m);
53 for (sort {$list{$b}->[0] <=> $list{$a}->[0] || $a cmp $b} keys %list) {
56 my @list = (sprintf "%10s", $_);
57 foreach my $j (0..10) {
61 $r = sprintf("%4d", $r);
67 push @out, join('|', @list);
70 $nocalls = sprintf "%10s", "$nocalls calls";
71 @tot = map {$_ ? sprintf("%4d", $_) : ' ' } @tot;
72 push @out, join('|', $nocalls, @tot, "");