r96290 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96289‎ | r96290 | r96291 >
Date:17:34, 5 September 2011
Author:ezachte
Status:deferred
Tags:
Comment:
browser/os requests breakdown now also per mime group, page (=html), image, other
Modified paths:
  • /trunk/wikistats/squids/SquidCountArchive.pl (modified) (history)

Diff [purge]

Index: trunk/wikistats/squids/SquidCountArchive.pl
@@ -6,6 +6,8 @@
77 $trace_on_exit = $true ;
88 ez_lib_version (13) ;
99
 10+ use Compress::Zlib;
 11+
1012 use SquidCountArchiveProcessLogRecord ;
1113 use SquidCountArchiveReadInput ;
1214 use SquidCountArchiveWriteOutput ;
@@ -136,6 +138,21 @@
137139
138140 # &ProcessSquidSequenceNumbers ;
139141
 142+ if ($url_wikipedia_mobile > 0)
 143+ {
 144+ print "\n$redirected_to_mobile out of $url_wikipedia_mobile (" . sprintf ("%.1f\%", 100 * $redirected_to_mobile / $url_wikipedia_mobile) . ") redirected to mobile wikipedia\n\n" ;
 145+ foreach $status (sort {$status_url_wikipedia_mobile {$b} <=> $status_url_wikipedia_mobile {$a}} keys %status_url_wikipedia_mobile)
 146+ { print "Status $status: " . $status_url_wikipedia_mobile {$status} . "\n" ; }
 147+ print "\n" ;
 148+ foreach $status_mime (sort {$status_mime_url_wikipedia_mobile {$b} <=> $status_mime_url_wikipedia_mobile {$a}} keys %status_mime_url_wikipedia_mobile)
 149+ { print "Status/Mime $status_mime : " . $status_mime_url_wikipedia_mobile {$status_mime} . "\n" ; }
 150+ print "\n" ;
 151+ }
 152+
 153+ else
 154+ { print "\nNo mobile urls detected ?!?!\n\n" ; }
 155+
 156+
140157 print "\n\nReady\n\n" ;
141158 exit ;
142159
@@ -275,7 +292,10 @@
276293 $file_ip_frequencies = "private/SquidDataIpFrequenciesDoNotPublish.csv" ;
277294 $file_ip_frequencies_bz2 = "private/SquidDataIpFrequenciesDoNotPublish.csv.bz2" ;
278295 $file_out_referers = "private/SquidDataReferersDoNotPublish.txt" ;
 296+
 297+ # two files with single events, written at SquidCountArchiveProcessLogRecord.pm, unlike aggregated data which are written at SquidCountArchiveWriteOutput.pm
279298 $file_edits_saves = "private/SquidDataEditsSavesDoNotPublish.txt" ;
 299+ $file_csv_views_viz = "private/SquidDataViewsVizDoNotPublish-date.gz" ;
280300
281301 $file_csv_agents = "public/SquidDataAgents.csv" ;
282302 $file_csv_banners = "public/SquidDataBanners.csv" ;

Status & tagging log