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 = 10 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);