diff --git a/views/layout.pug b/views/layout.pug index b0c6b39..b8ed38e 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -31,10 +31,10 @@ html $("#masternodeCountOffline").text(json.data[0].masternodeCountOffline).prop("alt", json.data[0].masternodeCountOffline+" unreachable nodes").prop("title", json.data[0].masternodeCountOffline+" unreachable nodes"); $("#spnMasternodeCountOnline").prop("alt", json.data[0].masternodeCountOnline+" nodes online").prop("title", json.data[0].masternodeCountOnline+" nodes online"); $("#spnMasternodeCountOffline").prop("alt", json.data[0].masternodeCountOffline+" unreachable nodes").prop("title", json.data[0].masternodeCountOffline+" unreachable nodes"); - $("#difficulty").text(json.data[0].difficulty.toFixed(2)); + $("#difficulty").text(parseFloat(json.data[0].difficulty).toFixed(2)); $("#difficultyHybrid").text(json.data[0].difficultyHybrid); $("#hashrate").text(parseFloat(json.data[0].hashrate).toLocaleString('en')); - $("#lastPrice").text(json.data[0].lastPrice.toFixed(8)); + $("#lastPrice").text(parseFloat(json.data[0].lastPrice).toFixed(8)); $("#lblConnections").text(json.data[0].connections + ' connections'); $("#lblBlockcount").text(json.data[0].blockcount + ' blocks'); $("#lblX1").text(' ');