From: Roland Häder Date: Mon, 28 Apr 2014 15:06:01 +0000 (+0200) Subject: Round it... ;-) X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=0fd3ea3be14003984aafe320876f479660b4f2de Round it... ;-) Signed-off-by: Roland Häder --- 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);