From: eldy <> Date: Thu, 29 May 2003 23:57:05 +0000 (+0000) Subject: A better browser detection. X-Git-Tag: AWSTATS_5_6_BETA~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab12b8bc5c862a4658ccdeb2f01665ccd646ee13;p=thirdparty%2FAWStats.git A better browser detection. --- diff --git a/docs/awstats_changelog.txt b/docs/awstats_changelog.txt index d06c3c00..a73d6bed 100644 --- a/docs/awstats_changelog.txt +++ b/docs/awstats_changelog.txt @@ -10,6 +10,7 @@ Fixes: New features/improvments: - Report compression ratios with mod_deflate feature (Apache 2). +- A better browser detection. Other/Documentation: - Updated documentation. diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index a609ede9..25fa763a 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -5973,7 +5973,13 @@ if ($UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft') { # Updat seek(LOG,$lastlineoffset,0); $_=; chomp $_; s/\r$//; - &Read_History_With_TmpUpdate($lastprocessedyear,$lastprocessedmonth,1,1,"all",($lastlinenumber+$NbOfLinesParsed),$lastlineoffset,&CheckSum($_)); + if (! $NbOfLinesParsed) { + # TODO If there was no lines parsed (log was empty), we only update LastUpdate line with YYYYMMDDHHMMSS 0 0 0 0 0 + &Read_History_With_TmpUpdate($lastprocessedyear,$lastprocessedmonth,1,1,"all",($lastlinenumber+$NbOfLinesParsed),$lastlineoffset,&CheckSum($_)); + } + else { + &Read_History_With_TmpUpdate($lastprocessedyear,$lastprocessedmonth,1,1,"all",($lastlinenumber+$NbOfLinesParsed),$lastlineoffset,&CheckSum($_)); + } } if ($Debug) { debug("Close log file \"$LogFile\""); }