added query time as gauge
This commit is contained in:
parent
1fab736eb6
commit
4303ccc42f
@ -5,6 +5,7 @@
|
|||||||
<div id="poolhashrate" style="width:150px; height:120px; float: left;"></div>
|
<div id="poolhashrate" style="width:150px; height:120px; float: left;"></div>
|
||||||
<div id="nethashrate" style="width:150px; height:120px; float: left;"></div>
|
<div id="nethashrate" style="width:150px; height:120px; float: left;"></div>
|
||||||
<div id="sharerate" style="width:150px; height:120px; float: left;"></div>
|
<div id="sharerate" style="width:150px; height:120px; float: left;"></div>
|
||||||
|
<div id="querytime" style="width:150px; height:120px; float: left;"></div>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
@ -47,6 +48,16 @@ window.onload = function(){
|
|||||||
label: "shares/s"
|
label: "shares/s"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var g5 = new JustGage({
|
||||||
|
id: "sharerate",
|
||||||
|
value: parseFloat(0.00).toFixed(2),
|
||||||
|
min: 5,
|
||||||
|
max: 50,
|
||||||
|
title: "Querytime",
|
||||||
|
label: "ms"
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// Our reload and refresh gauges handler
|
// Our reload and refresh gauges handler
|
||||||
setInterval(function() {
|
setInterval(function() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@ -58,6 +69,7 @@ window.onload = function(){
|
|||||||
g2.refresh(parseFloat(data.getdashboarddata.pool.hashrate).toFixed(2));
|
g2.refresh(parseFloat(data.getdashboarddata.pool.hashrate).toFixed(2));
|
||||||
g3.refresh(parseFloat(data.getdashboarddata.personal.hashrate).toFixed(2));
|
g3.refresh(parseFloat(data.getdashboarddata.personal.hashrate).toFixed(2));
|
||||||
g4.refresh(parseFloat(data.getdashboarddata.personal.sharerate).toFixed(2));
|
g4.refresh(parseFloat(data.getdashboarddata.personal.sharerate).toFixed(2));
|
||||||
|
g5.refresh(parseFloat(data.getdashboarddata.datatime).toFixed(2));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user