X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fwwv.pl;h=a8e4992a9e896a30f66cab9d35c51225dd97cbe3;hb=3643ef870e040d437448632209039477eac4e52c;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=7a64dbf69ead057f2fd3fef1df05e30cef339485;p=spider.git diff --git a/cmd/show/wwv.pl b/cmd/show/wwv.pl index e69de29b..a8e4992a 100644 --- a/cmd/show/wwv.pl +++ b/cmd/show/wwv.pl @@ -0,0 +1,33 @@ +# +# print out the wwv stats +# +# Copyright (c) 1998 - Dirk Koopman G1TLH +# +# $Id$ +# +my $self = shift; + +my $cmdline = shift; +my @f = split /\s+/, $cmdline; +my $f; +my @out; +my ($from, $to); + +$from = 0; +while ($f = shift @f) { # next field + # print "f: $f list: ", join(',', @list), "\n"; + if (!$from && !$to) { + ($from, $to) = $f =~ /^(\d+)-(\d+)$/o; # is it a from -> to count? + next if $from && $to > $from; + } + if (!$to) { + ($to) = $f =~ /^(\d+)$/o if !$to; # is it a to count? + next if $to; + } +} + +$to = 10 if !$to; + +push @out, "Date Hour SFI A K Forecast Logger"; +push @out, Geomag::print($from, $to, $main::systime); +return (1, @out);