From: Brion Vibber Date: Sat, 13 Jan 2007 04:22:47 +0000 (+0000) Subject: use number_format on bytes/sec in output to make it easier to read X-Git-Tag: 1.31.0-rc.0~54434 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=e398816be794cbe9ca6f1abd5958fa3913e9a8e3;p=lhc%2Fweb%2Fwiklou.git use number_format on bytes/sec in output to make it easier to read --- diff --git a/includes/normal/UtfNormalBench.php b/includes/normal/UtfNormalBench.php index b126b814be..3b124274d1 100644 --- a/includes/normal/UtfNormalBench.php +++ b/includes/normal/UtfNormalBench.php @@ -100,7 +100,11 @@ function benchmarkForm( &$u, &$data, $form ) { $rate = intval( strlen( $data ) / $delta ); $same = (0 == strcmp( $data, $out ) ); - printf( " %20s %6.1fms %8d bytes/s (%s)\n", $form, $delta*1000.0, $rate, ($same ? 'no change' : 'changed' ) ); + printf( " %20s %6.1fms %12s bytes/s (%s)\n", + $form, + $delta*1000.0, + number_format( $rate ), + ($same ? 'no change' : 'changed' ) ); return $out; }