projects
/
core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Round it... ;-)
[core.git]
/
contrib
/
chash
/
chash.php
diff --git
a/contrib/chash/chash.php
b/contrib/chash/chash.php
index b3bd3e63598970215d77fbdead54df8032935194..83ddd2f320d26006c4d4a472a7e975ae09359c02 100644
(file)
--- 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
// 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);
// Reset timer
$timeDisplay = microtime(TRUE);