bit more tidying up
[spider.git] / cmd / show / satellite.pl
index a6c07448c421c4de1d4ffbafeb15c48dceaee830..0e4ec5806f1c5314cf0a62c67ecbd8f9a80f10a9 100644 (file)
@@ -17,7 +17,11 @@ my $step = shift @f;                         # tracking table resolution in minutes
 
 # default hours and step size
 $numhours = 3 unless $numhours && $numhours =~ /^\d+$/;
+$numhours = 3 if $numhours < 0;
+$numhours = 24 if $numhours > 24;
 $step = 5 unless $step && $step =~ /^\d+$/;
+$step = 5 if $step < 0;
+$step = 30 if $step > 30;
 
 # get nearest lat and long (I can see we will need the altitude here soon as well :-)
 my $lat = $self->user->lat;