From 81cd9b1ee81eac98c19e26027f3baaff8ee08894 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sun, 24 Sep 2006 19:48:29 +0000 Subject: [PATCH] [1.1.1] Grey outputs that are negative. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@452 48356398-32a2-884e-a903-53898d9a118a --- benchmarks/Lexer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/benchmarks/Lexer.php b/benchmarks/Lexer.php index 45b2fcc5..9e13b54b 100644 --- a/benchmarks/Lexer.php +++ b/benchmarks/Lexer.php @@ -65,8 +65,11 @@ class RowTimer extends Benchmark_Timer if ($standard == false) $standard = $v['diff']; $perc = $v['diff'] * 100 / $standard; + $bad_run = ($v['diff'] < 0); - $out .= '' . number_format($perc, 2, '.', '') . + $out .= '' . number_format($perc, 2, '.', '') . '%'.number_format($v['diff'],4,'.','').''; }