[FIX] Removed getnavbardata from pool stats
This commit is contained in:
parent
b4d8d1006e
commit
e6b98ce482
@ -1,30 +0,0 @@
|
|||||||
<script>
|
|
||||||
{literal}
|
|
||||||
$(document).ready(function(){
|
|
||||||
|
|
||||||
// Ajax API URL
|
|
||||||
var url = "{/literal}{$smarty.server.SCRIPT_NAME}?page=api&action=getnavbardata{literal}";
|
|
||||||
|
|
||||||
function refreshStaticData(data) {
|
|
||||||
$('#b-workers').html((parseFloat(data.getnavbardata.data.pool.workers).toFixed(0)));
|
|
||||||
$('#b-hashrate').html((parseFloat(data.getnavbardata.data.pool.hashrate).toFixed(3)));
|
|
||||||
$('#b-target').html(data.getnavbardata.data.pool.estimated + " (done: " + data.getnavbardata.data.pool.progress + "%)");
|
|
||||||
$('#b-diff').html(data.getnavbardata.data.network.difficulty);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Our worker process to keep gauges and graph updated
|
|
||||||
(function worker() {
|
|
||||||
$.ajax({
|
|
||||||
url: url,
|
|
||||||
dataType: 'json',
|
|
||||||
success: function(data) {
|
|
||||||
refreshStaticData(data);
|
|
||||||
},
|
|
||||||
complete: function() {
|
|
||||||
setTimeout(worker, {/literal}{($GLOBAL.config.statistics_ajax_refresh_interval * 1000)|default:"10000"}{literal})
|
|
||||||
}
|
|
||||||
});
|
|
||||||
})();
|
|
||||||
});
|
|
||||||
{/literal}
|
|
||||||
</script>
|
|
||||||
@ -8,7 +8,3 @@
|
|||||||
{include file="statistics/pool/general_stats.tpl"}
|
{include file="statistics/pool/general_stats.tpl"}
|
||||||
{include file="statistics/blocks/small_table.tpl"}
|
{include file="statistics/blocks/small_table.tpl"}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{if !$GLOBAL.website.api.disabled && !$GLOBAL.config.disable_navbar && !$GLOBAL.config.disable_navbar_api}
|
|
||||||
{include file="statistics/js.tpl"}
|
|
||||||
{/if}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user