]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
A better browser detection.
authoreldy <>
Thu, 29 May 2003 23:57:05 +0000 (23:57 +0000)
committereldy <>
Thu, 29 May 2003 23:57:05 +0000 (23:57 +0000)
docs/awstats_changelog.txt
wwwroot/cgi-bin/awstats.pl

index d06c3c007969223bc367590328ee1aa74dcec9a5..a73d6bedda80ef823a7d88866cd513fb2c8d95c5 100644 (file)
@@ -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.
index a609ede9a3a3e1d29e41bea89fd9e95b88a75181..25fa763a9ff4eb6bb8d4a803368f3411bfa123d3 100644 (file)
@@ -5973,7 +5973,13 @@ if ($UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft') { # Updat
                seek(LOG,$lastlineoffset,0);
                $_=<LOG>;
                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\""); }