From 0fd3ea3be14003984aafe320876f479660b4f2de Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 28 Apr 2014 17:06:01 +0200 Subject: [PATCH] Round it... ;-) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- contrib/chash/chash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/chash/chash.php b/contrib/chash/chash.php index b3bd3e63..83ddd2f3 100644 --- a/contrib/chash/chash.php +++ b/contrib/chash/chash.php @@ -353,7 +353,7 @@ while (TRUE) { // Only every second if ($testTime >= 1) { // Display hash rate - print ('hashrate=' . $hashrate . ' hashes/sec,iterSecond=' . $iterSecond . ' iterations/sec' . PHP_EOL); + print ('hashrate=' . round($hashrate) . ' hashes/sec,iterSecond=' . $iterSecond . ' iterations/sec' . PHP_EOL); // Reset timer $timeDisplay = microtime(TRUE); -- 2.39.5