r97322 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97321‎ | r97322 | r97323 >
Date:19:07, 16 September 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
We were not getting enough of significant digits to sort 0.02% and 0.05% correctly
Modified paths:
  • /trunk/extensions/Translate/utils/StatsTable.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/StatsTable.php
@@ -153,11 +153,11 @@
154154
155155 $out .= "\n\t\t" . $this->element( $this->formatPercentage( $translated / $total ),
156156 $this->getBackgroundColour( $translated, $total ),
157 - sprintf( '%1.3f', $translated / $total ) );
 157+ sprintf( '%1.5f', $translated / $total ) );
158158
159159 $out .= "\n\t\t" . $this->element( $this->formatPercentage( $fuzzy / $total ),
160160 $this->getBackgroundColour( $fuzzy, $total, true ),
161 - sprintf( '%1.3f', $fuzzy / $total ) );
 161+ sprintf( '%1.5f', $fuzzy / $total ) );
162162
163163 $out .= "\n\t" . Xml::closeElement( 'tr' ) . "\n";
164164 return $out;

Status & tagging log