// 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);