]> git.mxchange.org Git - core.git/blobdiff - contrib/chash/chash.php
Round it... ;-)
[core.git] / 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);