X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fsatellite.pl;h=bede7a89dfd75859adfdf386f385332251f49e32;hb=564b5b3a0c2fa40f00e015f8b05f3a87ea4e7e26;hp=35bc7b88ba4a80f0eff0f1ae95dd181185680307;hpb=b099b4a232e18d4204e10d0dbe0b63f741176baf;p=spider.git diff --git a/cmd/show/satellite.pl b/cmd/show/satellite.pl index 35bc7b88..bede7a89 100644 --- a/cmd/show/satellite.pl +++ b/cmd/show/satellite.pl @@ -16,9 +16,9 @@ my ($self, $line) = @_; my @out; my @f = split /\s+/, $line; -my $satname = uc shift @f; -my $numhours = shift @f; # the number of hours ahead to print -my $step = shift @f; # tracking table resolution in minutes +my $satname = uc shift @f if @f; +my $numhours = shift @f if @f; # the number of hours ahead to print +my $step = shift @f if @f; # tracking table resolution in minutes # default hours and step size $numhours = 3 unless $numhours && $numhours =~ /^\d+$/;