User proper archive table for union

Addresses #312
This commit is contained in:
Sebastian Grewe 2013-07-07 19:39:16 +02:00
parent 89af793a28
commit 9d50c9a222

View File

@ -421,7 +421,7 @@ class Statistics {
SELECT
IFNULL(ROUND(COUNT(s.id) * POW(2, " . $this->config['difficulty'] . ") / 3600 / 1000), 0) AS hashrate,
HOUR(s.time) AS hour
FROM " . $this->share->getTableName() . " AS s
FROM " . $this->share->getArchiveTableName() . " AS s
WHERE time < NOW() - INTERVAL 1 HOUR
AND time > NOW() - INTERVAL 25 HOUR
GROUP BY HOUR(time)");