From: eldy <> Date: Sun, 24 Dec 2000 17:08:19 +0000 (+0000) Subject: Make AWStats still working even when MS IndexServer return a bad HTTP return code... X-Git-Tag: AWSTATS_1_0~361 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5743045025588f573b2cf933ec32c370fefaba32;p=thirdparty%2FAWStats.git Make AWStats still working even when MS IndexServer return a bad HTTP return code (like "1" instead of a "three digits" number). --- diff --git a/awstats.pl b/awstats.pl index 75e1336b..1fdd8b4e 100644 --- a/awstats.pl +++ b/awstats.pl @@ -1731,11 +1731,11 @@ if (($YearRequired == $nowyear) && ($MonthRequired eq "year" || $MonthRequired = $timeconnexion=$dateparts[2].$dateparts[1].$dateparts[0].$dateparts[3].$dateparts[4].$dateparts[5]; # YYYYMMDDHHMMSS # Skip if not a new line if ($NowNewLinePhase) { - if ($timeconnexion < $LastTime{$monthtoprocess.$yeartoprocess}) { next; } # Should not happen, kept in case of parasite lines + if ($timeconnexion < $LastTime{$monthtoprocess.$yeartoprocess}) { next; } # Should not happen, kept in case of parasite old lines } else { if ($timeconnexion <= $LastTime{$monthtoprocess.$yeartoprocess}) { next; } # Already processed - $NowNewLinePhase=1; + $NowNewLinePhase=1; # This will stop comparison between timeconnexion and LastTime (we should have only new lines now) } if (&SkipFile($felter[6])) { next; } # Skip with some URL @@ -1760,6 +1760,7 @@ if (($YearRequired == $nowyear) && ($MonthRequired eq "year" || $MonthRequired = if ($felter[8] == 404) { $_sider404_h{$felter[6]}++; } next; } + if ($felter[8] == 1) { next } # This avoid error when using MS IndexServer that returns non standard HTTP code print "Log file $LogFile doesn't seem to have good format. Suspect line is
"; print "$line
"; print "
LogFormat parameter is $LogFormat, this means each line in your log file need to have ";