diff --git a/include/classes/statistics.class.php b/include/classes/statistics.class.php index bd798454..54628668 100644 --- a/include/classes/statistics.class.php +++ b/include/classes/statistics.class.php @@ -470,7 +470,7 @@ class Statistics extends Base { a.username AS account, COUNT(DISTINCT t1.username) AS workers, IFNULL(SUM(t1.difficulty), 0) AS shares, - ROUND(SUM(t1.difficulty) / ?, 2) AS sharerate, + ROUND(SUM(t1.difficulty) / ?, " . $this->coin->getShareDifficultyPrecision() . ") AS sharerate, IFNULL(AVG(IF(difficulty=0, pow(2, (" . $this->config['difficulty'] . " - 16)), difficulty)), 0) AS avgsharediff FROM ( SELECT diff --git a/templates/bootstrap/statistics/graphs/default.tpl b/templates/bootstrap/statistics/graphs/default.tpl index 95261fcc..8ab98710 100644 --- a/templates/bootstrap/statistics/graphs/default.tpl +++ b/templates/bootstrap/statistics/graphs/default.tpl @@ -1,8 +1,9 @@