X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fwwv.pl;h=988b760a6446fcfa0161efc0a0b13710ca6a729e;hb=da65011693cc9a7a33f09424f7a19a51937d986c;hp=a8e4992a9e896a30f66cab9d35c51225dd97cbe3;hpb=3643ef870e040d437448632209039477eac4e52c;p=spider.git diff --git a/cmd/show/wwv.pl b/cmd/show/wwv.pl index a8e4992a..988b760a 100644 --- a/cmd/show/wwv.pl +++ b/cmd/show/wwv.pl @@ -21,13 +21,17 @@ while ($f = shift @f) { # next field next if $from && $to > $from; } if (!$to) { - ($to) = $f =~ /^(\d+)$/o if !$to; # is it a to count? + ($to) = $f =~ /^(\d+)$/o; # is it a to count? next if $to; } } -$to = 10 if !$to; +$from = 1 unless $from; +$to = 5 unless $to; -push @out, "Date Hour SFI A K Forecast Logger"; -push @out, Geomag::print($from, $to, $main::systime); +push @out, $self->msg('wwv3'); +my @in = Geomag::search($from, $to, $main::systime); +for (@in) { + push @out, Geomag::print_item($_); +} return (1, @out);