]> git.mxchange.org Git - core.git/commitdiff
Round it... ;-)
authorRoland Häder <haeder@hmmdeutschland.de>
Mon, 28 Apr 2014 15:06:01 +0000 (17:06 +0200)
committerRoland Häder <haeder@hmmdeutschland.de>
Mon, 28 Apr 2014 15:06:01 +0000 (17:06 +0200)
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
contrib/chash/chash.php

index b3bd3e63598970215d77fbdead54df8032935194..83ddd2f320d26006c4d4a472a7e975ae09359c02 100644 (file)
@@ -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);