https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114593

Revision: 114593
Author:   a_engels
Date:     2012-03-29 05:52:14 +0000 (Thu, 29 Mar 2012)
Log Message:
-----------
Phil's request

Modified Paths:
--------------
    trunk/wikistats/squids/SquidReportArchive.pl

Modified: trunk/wikistats/squids/SquidReportArchive.pl
===================================================================
--- trunk/wikistats/squids/SquidReportArchive.pl        2012-03-29 03:22:16 UTC 
(rev 114592)
+++ trunk/wikistats/squids/SquidReportArchive.pl        2012-03-29 05:52:14 UTC 
(rev 114593)
@@ -4463,32 +4463,32 @@
   my $total_html                 = $countua {'T', '.', 'page', '.'} ;
   my $api_multiplier             = $countua {'S', '.', 'page', '.'} / $countua 
{'S', '.', '.', 'opensearch' } ; 
 
-  $mobile_browsers_all           = &ShowCount ($countua {'M', '.', '.', '.'}) ;
+  $mobile_browsers_all           = &ShowCount ($countua {'M', '.', '.', '.'},  
$marker_color) ;
   $mobile_browsers_all_mobile    = &ShowCount ($countua {'M', 'M', '.', '.'}) ;
   $mobile_browsers_all_main      = &ShowCount ($countua {'M', 'W', '.', '.'}) ;
   $mobile_browsers_all_others    = &ShowCount ($countua {'M', 'X', '.', '.'}) ;
-  $mobile_browsers_all_perc      = &ShowPerc  (100 * $countua {'M', '.', '.', 
'.'} / $total_count ) ;
+  $mobile_browsers_all_perc      = &ShowPerc  (100 * $countua {'M', '.', '.', 
'.'} / $total_count,  $marker_color ) ;
 
-  $mobile_browsers_html          = &ShowCount ($countua {'M', '.', 'page', 
'.'}) ;
+  $mobile_browsers_html          = &ShowCount ($countua {'M', '.', 'page', 
'.'},  $marker_color) ;
   $mobile_browsers_html_mobile   = &ShowCount ($countua {'M', 'M', 'page', 
'.'}) ;
   $mobile_browsers_html_main     = &ShowCount ($countua {'M', 'W', 'page', 
'.'}) ;
   $mobile_browsers_html_others   = &ShowCount ($countua {'M', 'X', 'page', 
'.'}) ;
-  $mobile_browsers_html_perc     = &ShowPerc  (100 * $countua {'M', '.', 
'page', '.'} / $total_html ) ;
+  $mobile_browsers_html_perc     = &ShowPerc  (100 * $countua {'M', '.', 
'page', '.'} / $total_html,  $marker_color ) ;
 
-  $mobile_browsers_images        = &ShowCount ($countua {'M', '.', 'image', 
'.'}) ;
-  $mobile_browsers_other         = &ShowCount ($countua {'M', '.', 'other', 
'.'})  ;
+  $mobile_browsers_images        = &ShowCount ($countua {'M', '.', 'image', 
'.'},  $marker_color) ;
+  $mobile_browsers_other         = &ShowCount ($countua {'M', '.', 'other', 
'.'},  $marker_color)  ;
 
-  $mobile_browsers_estimate      = &ShowCount (floor($countua {'M', '.', '.', 
'opensearch' } * $api_multiplier + 0.5)) ;
-  $mobile_browsers_estimate_perc = &ShowPerc  (100 * $countua {'M', '.', '.', 
'opensearch' } * $api_multiplier / $total_html) ;
+  $mobile_browsers_estimate      = &ShowCount (floor($countua {'M', '.', '.', 
'opensearch' } * $api_multiplier + 0.5),  $marker_color) ;
+  $mobile_browsers_estimate_perc = &ShowPerc  (100 * $countua {'M', '.', '.', 
'opensearch' } * $api_multiplier / $total_html,  $marker_color) ;
 
   $html .= "<tr>" .
            "<td class=lt><b>Mobile browsers</b><br>&nbsp;&nbsp;(to mobile 
site)<br>&nbsp;&nbsp;(to main site)<br>&nbsp;&nbsp;(others)</td>\n" .
-           "<td 
class=rt>$mobile_browsers_all<br>$mobile_browsers_all_mobile<br>$mobile_browsers_all_main<br>$mobile_browsers_all_others</td>"
 .
-           "<td class=rt>$mobile_browsers_all_perc</td>\n" .
-           "<td 
class=rt>$mobile_browsers_html<br>$mobile_browsers_html_mobile<br>$mobile_browsers_html_main<br>$mobile_browsers_html_others</td></td><td
 class=rt>$mobile_browsers_html_perc</td>\n" .
-           "<td class=rt>$mobile_browsers_images</td>\n" .
-           "<td class=rt>$mobile_browsers_other</td>\n" .
-           "<td class=rt>$mobile_browsers_estimate</td><td 
class=rt>$mobile_browsers_estimate_perc</td>" .
+           "<td 
class=rt><b>$mobile_browsers_all</b><br>$mobile_browsers_all_mobile<br>$mobile_browsers_all_main<br>$mobile_browsers_all_others</td>"
 .
+           "<td class=rt><b>$mobile_browsers_all_perc</b></td>\n" .
+           "<td 
class=rt><b>$mobile_browsers_html</b><br>$mobile_browsers_html_mobile<br>$mobile_browsers_html_main<br>$mobile_browsers_html_others</td></td><td
 class=rt><b>$mobile_browsers_html_perc</b></td>\n" .
+           "<td class=rt><b>$mobile_browsers_images</b></td>\n" .
+           "<td class=rt><b>$mobile_browsers_other</b></td>\n" .
+           "<td class=rt><b>$mobile_browsers_estimate</b></td><td 
class=rt><b>$mobile_browsers_estimate_perc</b></td>" .
            "</tr>\n" ;
 
   $android_wikimedia_all           = &ShowCount ($countua {'A', '.', '.', 
'.'}) ;


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to