X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FSpot.pm;h=2e4afe023c2c72ba6b1fa4fa85df875986213c2d;hb=39c43b632223b4c11eac1253b523153e9cd5be94;hp=75e34c116a7e7e2f11bb21047637eb37dc01ba63;hpb=c36b11f5bda0555f5ff58e0499c77652b5d0f6ca;p=spider.git diff --git a/perl/Spot.pm b/perl/Spot.pm index 75e34c11..2e4afe02 100644 --- a/perl/Spot.pm +++ b/perl/Spot.pm @@ -140,7 +140,7 @@ sub search $fp->close; # close any open files - for ($i = 0; $i < $maxdays; ++$i) { # look thru $maxdays worth of files only + for ($i = $count = 0; $i < $maxdays; ++$i) { # look thru $maxdays worth of files only my @now = Julian::sub(@fromdate, $i); # but you can pick which $maxdays worth last if Julian::cmp(@now, @todate) <= 0;