r10164 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10163‎ | r10164 | r10165 >
Date:22:01, 16 July 2005
Author:avar
Status:old
Tags:
Comment:
* Using the percent function
Modified paths:
  • /trunk/phase3/maintenance/parserTests.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.inc
@@ -188,8 +188,8 @@
189189 }
190190 }
191191 if( $total > 0 ) {
192 - $ratio = sprintf( "%.2f", 100 * $success / $total );
193 - print $this->termColor( 1 ) . "\nPassed $success of $total tests ($ratio%) ";
 192+ $ratio = percent( 100 * $success / $total );
 193+ print $this->termColor( 1 ) . "\nPassed $success of $total tests ($ratio) ";
194194 if( $success == $total ) {
195195 print $this->termColor( 32 ) . "PASSED!";
196196 } else {

Status & tagging log