2 # Show total DXStats per day
4 # Copyright (c) 2001 Dirk Koopman G1TLH
9 my ($self, $line) = @_;
10 my @f = split /\s+/, $line;
15 my $now = Julian::Day->new(time())->sub(31);
19 # generate the spot list
20 for ($i = 0; $i < $days; $i++) {
21 my $fh = $Spot::statp->open($now); # get the next file
24 $fh = $Spot::statp->open($now);
29 next unless $l[0] eq 'TOTALS';
41 push @out, $self->msg('statdx');
42 foreach my $ref (@in) {
43 push @out, sprintf "%12s: %7d", $ref->[0]->as_string, $ref->[1];
46 push @out, sprintf "%12s: %7d", "Total", $tot;