
a_engels at svn
Jun 22, 2012, 3:30 PM
Post #1 of 1
(64 views)
Permalink
|
|
[MediaWiki-commits] SVN: [115549] trunk/wikistats/squids/SquidCountArchiveProcessLogRecord.pm
|
|
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/115549 Revision: 115549 Author: a_engels Date: 2012-06-22 22:30:47 +0000 (Fri, 22 Jun 2012) Log Message: ----------- corrected mimetype bugfix Modified Paths: -------------- trunk/wikistats/squids/SquidCountArchiveProcessLogRecord.pm Modified: trunk/wikistats/squids/SquidCountArchiveProcessLogRecord.pm =================================================================== --- trunk/wikistats/squids/SquidCountArchiveProcessLogRecord.pm 2012-06-22 20:49:33 UTC (rev 115548) +++ trunk/wikistats/squids/SquidCountArchiveProcessLogRecord.pm 2012-06-22 22:30:47 UTC (rev 115549) @@ -13,7 +13,7 @@ $mime = $fields [10] ; $url = lc ($fields [8]) ; - $mime =~ s/;// ; # May 2012: mimetype "text/html;" instead of "text/html" from mobile site + $mime =~ s/[;\s].*// ; if ($mime eq '-') { # no mime type on log records from varnish, assume 'page request' on most, until that stream had been fixed @@ -33,7 +33,7 @@ { return if $line =~ /Banner(?:Cont|List|Load|beheer)/io ; - if ($mime eq "text/html") + if ($mime =~ "text/html") { $ip_frequencies {$client_ip} ++ ; # do not use $count_event here! $html_pages_found += $count_event ; _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits [at] lists https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
|