2 # Show total VHF DX Spot Stats per day
4 # Copyright (c) 2001 Dirk Koopman G1TLH
9 my ($self, $line) = @_;
10 my @f = split /\s+/, $line;
12 my $now = Julian::Day->new(time())->sub(31);
16 # generate the spot list
17 for ($i = 0; $i < $days; $i++) {
18 my $fh = $Spot::statp->open($now); # get the next file
21 $fh = $Spot::statp->open($now);
26 next unless $l[0] eq 'TOTALS';
38 push @out, $self->msg('statvhf', cldate(time));
39 push @out, sprintf "%11s|%6s|%5s|%5s|%5s|%5s|%5s|%5s|%5s|%5s|%5s|", qw(Date Total 6m 4m 2m 70cm 23cm 13cm 9cm 6cm 3cm);
40 foreach my $ref (@in) {
42 foreach my $j (14..16,18..23) {
43 $tot[$j] += $ref->[$j];
44 $tot[0] += $ref->[$j];
45 $linetot += $ref->[$j];
47 push @out, join('|', sprintf("%11s|%6d", $ref->[0]->as_string, $linetot), map {$_ ? sprintf("%5d", $_) : ' '} @$ref[14..16,18..23]) . '|';
49 push @out, join('|', sprintf("%11s|%6d", 'Total', $tot[0]), map {$_ ? sprintf("%5d", $_) : ' '} @tot[14..16,18..23]) . '|';