adding proper shares per second

This commit is contained in:
Sebastian Grewe 2013-05-16 21:12:59 +02:00
parent 72156c543d
commit 16f9cc4390

View File

@ -159,6 +159,7 @@ class Statistics {
public function getTopContributors($limit=15) {
$stmt = $this->mysqli->prepare("
SELECT
ROUND(COUNT(id) / 60 / 10, 2) AS sharesps,
ROUND(COUNT(id) * POW(2," . $this->config['difficulty'] . ")/600/1000,2) AS hashrate,
SUBSTRING_INDEX( username, '.', 1 ) AS account
FROM " . $this->share->getTableName() . "