From: Ævar Arnfjörð Bjarmason Date: Sat, 16 Jul 2005 22:01:47 +0000 (+0000) Subject: * Using the percent function X-Git-Tag: 1.5.0beta4~116 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=68871fa25dbe1aa3a06fc6154cea0ae7e5b7012a;p=lhc%2Fweb%2Fwiklou.git * Using the percent function --- diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 0d797b21ea..8cb6510ff9 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -188,8 +188,8 @@ class ParserTest { } } if( $total > 0 ) { - $ratio = sprintf( "%.2f", 100 * $success / $total ); - print $this->termColor( 1 ) . "\nPassed $success of $total tests ($ratio%) "; + $ratio = percent( 100 * $success / $total ); + print $this->termColor( 1 ) . "\nPassed $success of $total tests ($ratio) "; if( $success == $total ) { print $this->termColor( 32 ) . "PASSED!"; } else {