From: eldy <> Date: Mon, 5 Aug 2002 06:48:54 +0000 (+0000) Subject: New update algorithm X-Git-Tag: AWSTATS_5_0_BETA~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2217ba96f2e3464fbb92bbd7642bdb3fc60c5432;p=thirdparty%2FAWStats.git New update algorithm --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 4511c0cf..66101261 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -1503,7 +1503,7 @@ sub Read_History_With_Update { chomp $_; s/\r//; $countlines++; # Analyze config line - if ($_ =~ /^AWSTATS DATA FILE (\d+).(\d+)/i) { + if (! $versionnum && $_ =~ /^AWSTATS DATA FILE (\d+).(\d+)/i) { $versionnum=($1*1000)+$2; if ($Debug) { debug(" Data file version is $versionnum",1); } next; @@ -1542,7 +1542,7 @@ sub Read_History_With_Update { delete $SectionsToLoad{"general"}; if ($SectionsToSave{"general"}) { Save_History("general",$year,$month); delete $SectionsToSave{"general"}; } if (! scalar %SectionsToLoad) { debug(" Stop reading history file. Got all we need."); last; } - next; + if ($versionnum >= 5000) { next; } } # BEGIN_ORIGIN @@ -5573,7 +5573,7 @@ EOF my $dayofweekcursor=DayOfWeek($day,$month,$year); print "