Index: trunk/phase3/maintenance/language/StatOutputs.php |
— | — | @@ -52,6 +52,10 @@ |
53 | 53 | function formatPercent( $subset, $total, $revert = false, $accuracy = 2 ) { |
54 | 54 | $v = @round( 255 * $subset / $total ); |
55 | 55 | if ( $revert ) { |
| 56 | + # Weigh reverse with factor 20 so coloring takes effect more quickly as |
| 57 | + # this option is used solely for reporting 'bad' percentages. |
| 58 | + $v = $v * 20; |
| 59 | + if ( $v > 255 ) $v = 255; |
56 | 60 | $v = 255 - $v; |
57 | 61 | } |
58 | 62 | if ( $v < 128 ) { |