Skip to content

Commit 3cbc05d

Browse files
committed
[FIX] Pool Hashrate for < diff1 shares
1 parent e1afcfd commit 3cbc05d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/classes/statistics.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,12 @@ public function getCurrentHashrate($interval=180) {
223223
SELECT
224224
(
225225
(
226-
SELECT IFNULL(ROUND(SUM(IF(difficulty=0, POW(2, (" . $this->config['difficulty'] . " - 16)), difficulty))), 0) AS shares
226+
SELECT IFNULL(SUM(IF(difficulty=0, POW(2, (" . $this->config['difficulty'] . " - 16)), difficulty)), 0) AS shares
227227
FROM " . $this->share->getTableName() . "
228228
WHERE time > DATE_SUB(now(), INTERVAL ? SECOND)
229229
AND our_result = 'Y'
230230
) + (
231-
SELECT IFNULL(ROUND(SUM(IF(difficulty=0, POW(2, (" . $this->config['difficulty'] . " - 16)), difficulty))), 0) AS shares
231+
SELECT IFNULL(SUM(IF(difficulty=0, POW(2, (" . $this->config['difficulty'] . " - 16)), difficulty)), 0) AS shares
232232
FROM " . $this->share->getArchiveTableName() . "
233233
WHERE time > DATE_SUB(now(), INTERVAL ? SECOND)
234234
AND our_result = 'Y'

0 commit comments

Comments
 (0)