From 2d133192f5259e32340cbb58d68d563380b3c860 Mon Sep 17 00:00:00 2001 From: joeuhren <46763106+joeuhren@users.noreply.github.com> Date: Sun, 22 Nov 2020 17:06:56 -0700 Subject: [PATCH] Fixes for summary display --- views/layout.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(' ');