Skip to content

Commit af3f164

Browse files
committed
Merge pull request #1929 from MPOS/fix-hard-coded-table
[FIX] Remove static table reference
2 parents 8bbf96a + 3a73ef5 commit af3f164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/include/classes/statistics.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ public function getAllUserMiningStats($interval=180) {
469469
share_id,
470470
IF(difficulty = 0, POW(2, (" . $this->config['difficulty'] . " - 16)), difficulty) AS difficulty,
471471
username
472-
FROM shares_archive
472+
FROM " . $this->share->getArchiveTableName() . "
473473
WHERE time > DATE_SUB(now(), INTERVAL ? SECOND) AND our_result = 'Y'
474474
) AS t1
475475
LEFT JOIN " . $this->user->getTableName() . " AS a

0 commit comments

Comments
 (0)