From 68871fa25dbe1aa3a06fc6154cea0ae7e5b7012a Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 16 Jul 2005 22:01:47 +0000 Subject: [PATCH] * Using the percent function --- maintenance/parserTests.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.20.1