From 3cbc05dd09fb01f33a99fce3bc66e55a6d856584 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 18 Jul 2014 08:09:05 +0200 Subject: [PATCH] [FIX] Pool Hashrate for < diff1 shares --- include/classes/statistics.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/classes/statistics.class.php b/include/classes/statistics.class.php index 191bb00d..ae6736b4 100644 --- a/include/classes/statistics.class.php +++ b/include/classes/statistics.class.php @@ -223,12 +223,12 @@ class Statistics extends Base { SELECT ( ( - SELECT IFNULL(ROUND(SUM(IF(difficulty=0, POW(2, (" . $this->config['difficulty'] . " - 16)), difficulty))), 0) AS shares + SELECT IFNULL(SUM(IF(difficulty=0, POW(2, (" . $this->config['difficulty'] . " - 16)), difficulty)), 0) AS shares FROM " . $this->share->getTableName() . " WHERE time > DATE_SUB(now(), INTERVAL ? SECOND) AND our_result = 'Y' ) + ( - SELECT IFNULL(ROUND(SUM(IF(difficulty=0, POW(2, (" . $this->config['difficulty'] . " - 16)), difficulty))), 0) AS shares + SELECT IFNULL(SUM(IF(difficulty=0, POW(2, (" . $this->config['difficulty'] . " - 16)), difficulty)), 0) AS shares FROM " . $this->share->getArchiveTableName() . " WHERE time > DATE_SUB(now(), INTERVAL ? SECOND) AND our_result = 'Y'