X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fwwv.pl;h=349180ae0270262f7ae4f28655c89c1784997853;hb=24bfcc3275f8a8be7e9cdde2acfb46e27e3d875a;hp=ed5022d728d1e131dc62fa4e31bf7849b2feb6b7;hpb=d5b4190c36f130852973121042876af3c5642cd7;p=spider.git diff --git a/cmd/show/wwv.pl b/cmd/show/wwv.pl index ed5022d7..349180ae 100644 --- a/cmd/show/wwv.pl +++ b/cmd/show/wwv.pl @@ -26,8 +26,12 @@ while ($f = shift @f) { # next field } } -$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); +my @in = Geomag::search($from, $to, $main::systime); +for (@in) { + push @out, Geomag::print_item($_); +} return (1, @out);