[REMOVED] Logging
This commit is contained in:
parent
fa4b32e420
commit
a276bc0e4e
@ -155,14 +155,11 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
function refreshBlockData(data) {
|
function refreshBlockData(data) {
|
||||||
blocks = data.getdashboarddata.data.pool.blocks;
|
blocks = data.getdashboarddata.data.pool.blocks;
|
||||||
console.log(blocks);
|
|
||||||
if (blocks[0].height > lastBlock) {
|
if (blocks[0].height > lastBlock) {
|
||||||
lastBlock = blocks[0].height;
|
lastBlock = blocks[0].height;
|
||||||
console.log('New block is higher, re-draw table');
|
|
||||||
var table_content = '<tbody id="b-blocks">';
|
var table_content = '<tbody id="b-blocks">';
|
||||||
for (index = 0; index < blocks.length; ++index) {
|
for (index = 0; index < blocks.length; ++index) {
|
||||||
console.log(blocks[index]);
|
var time = new Date(blocks[index].time * 1000)
|
||||||
var time = new Date.UTC(blocks[index].time * 1000)
|
|
||||||
var table_row = '<tr>';
|
var table_row = '<tr>';
|
||||||
table_row += '<td class="text-right">' + blocks[index].height + '</td>';
|
table_row += '<td class="text-right">' + blocks[index].height + '</td>';
|
||||||
table_row += '<td class="text-center">' + blocks[index].finder + '</td>';
|
table_row += '<td class="text-center">' + blocks[index].finder + '</td>';
|
||||||
@ -183,8 +180,6 @@ $(document).ready(function(){
|
|||||||
}
|
}
|
||||||
table_content += '</tbody>';
|
table_content += '</tbody>';
|
||||||
$("tbody#b-blocks").replaceWith(table_content);
|
$("tbody#b-blocks").replaceWith(table_content);
|
||||||
} else {
|
|
||||||
console.log('No table update required');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user