// Now over-hash it
for ($idx = 0; $idx < $totalHashes; $idx++) {
// Over-hash the given hash
- $hash = hashString($hash . $str);
+ $hash = hashString($hash);
} // END - for
// Return it
// 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);