http://www.mediawiki.org/wiki/Special:Code/MediaWiki/82886
Revision: 82886
Author: aaron
Date: 2011-02-27 09:34:37 +0000 (Sun, 27 Feb 2011)
Log Message:
-----------
Added p90 stat since it's interesting
Modified Paths:
--------------
trunk/extensions/FlaggedRevs/maintenance/updateStats.inc
Modified: trunk/extensions/FlaggedRevs/maintenance/updateStats.inc
===================================================================
--- trunk/extensions/FlaggedRevs/maintenance/updateStats.inc 2011-02-27
09:16:09 UTC (rev 82885)
+++ trunk/extensions/FlaggedRevs/maintenance/updateStats.inc 2011-02-27
09:34:37 UTC (rev 82886)
@@ -245,11 +245,10 @@
$rank = round( count($times)/2 + .5 ) - 1;
$medianRT = $times[$rank];
// Make percentile tabulation data
- $percentile = 35; // start at 35th
- while ( $percentile < 100 ) {
+ $doPercentiles = array( 35, 45, 55, 65, 75, 85, 90, 95 );
+ foreach ( $doPercentiles as $percentile ) {
$rank = round( $percentile*count($times)/100 + .5 ) - 1;
$rPerTable[$percentile] = $times[$rank];
- $percentile += 10;
}
echo "(sampled ".count($times)." edits)...";
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs