fix sharerate precision and reduce graphics page size
This commit is contained in:
parent
e09db5c1e0
commit
30668ed502
@ -470,7 +470,7 @@ class Statistics extends Base {
|
|||||||
a.username AS account,
|
a.username AS account,
|
||||||
COUNT(DISTINCT t1.username) AS workers,
|
COUNT(DISTINCT t1.username) AS workers,
|
||||||
IFNULL(SUM(t1.difficulty), 0) AS shares,
|
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
|
IFNULL(AVG(IF(difficulty=0, pow(2, (" . $this->config['difficulty'] . " - 16)), difficulty)), 0) AS avgsharediff
|
||||||
FROM (
|
FROM (
|
||||||
SELECT
|
SELECT
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
|
var miningstats = {$YOURMININGSTATS nofilter};
|
||||||
var hashChart = Morris.Line({
|
var hashChart = Morris.Line({
|
||||||
element: 'hashrate-area-chart',
|
element: 'hashrate-area-chart',
|
||||||
data: {$YOURMININGSTATS nofilter},
|
data: miningstats,
|
||||||
xkey: 'time',
|
xkey: 'time',
|
||||||
ykeys: ['hashrate'],
|
ykeys: ['hashrate'],
|
||||||
labels: ['Hashrate'],
|
labels: ['Hashrate'],
|
||||||
@ -17,7 +18,7 @@ $(function () {
|
|||||||
|
|
||||||
var workersChart = Morris.Line({
|
var workersChart = Morris.Line({
|
||||||
element: 'workers-area-chart',
|
element: 'workers-area-chart',
|
||||||
data: {$YOURMININGSTATS nofilter},
|
data: miningstats,
|
||||||
xkey: 'time',
|
xkey: 'time',
|
||||||
ykeys: ['workers'],
|
ykeys: ['workers'],
|
||||||
labels: ['Workers'],
|
labels: ['Workers'],
|
||||||
@ -32,7 +33,7 @@ $(function () {
|
|||||||
|
|
||||||
var shareCharts= Morris.Line({
|
var shareCharts= Morris.Line({
|
||||||
element: 'sharerate-area-chart',
|
element: 'sharerate-area-chart',
|
||||||
data: {$YOURMININGSTATS nofilter},
|
data: miningstats,
|
||||||
xkey: 'time',
|
xkey: 'time',
|
||||||
ykeys: ['sharerate'],
|
ykeys: ['sharerate'],
|
||||||
labels: ['Sharerate'],
|
labels: ['Sharerate'],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user