Merge pull request #2729 from r4sas/lowdiff-shares
fix sharerate precision and reduce graphics page size
This commit is contained in:
commit
b9dc229d20
@ -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
|
||||
|
||||
@ -1,8 +1,9 @@
|
||||
<script>
|
||||
$(function () {
|
||||
var miningstats = {$YOURMININGSTATS nofilter};
|
||||
var hashChart = Morris.Line({
|
||||
element: 'hashrate-area-chart',
|
||||
data: {$YOURMININGSTATS nofilter},
|
||||
data: miningstats,
|
||||
xkey: 'time',
|
||||
ykeys: ['hashrate'],
|
||||
labels: ['Hashrate'],
|
||||
@ -17,7 +18,7 @@ $(function () {
|
||||
|
||||
var workersChart = Morris.Line({
|
||||
element: 'workers-area-chart',
|
||||
data: {$YOURMININGSTATS nofilter},
|
||||
data: miningstats,
|
||||
xkey: 'time',
|
||||
ykeys: ['workers'],
|
||||
labels: ['Workers'],
|
||||
@ -32,7 +33,7 @@ $(function () {
|
||||
|
||||
var shareCharts= Morris.Line({
|
||||
element: 'sharerate-area-chart',
|
||||
data: {$YOURMININGSTATS nofilter},
|
||||
data: miningstats,
|
||||
xkey: 'time',
|
||||
ykeys: ['sharerate'],
|
||||
labels: ['Sharerate'],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user