diff --git a/models/node.js b/models/node.js index e85419e..e972a69 100644 --- a/models/node.js +++ b/models/node.js @@ -52,6 +52,8 @@ var Node = function Node(data) this.info = data.info; if(typeof data.ip !== 'undefined'){ + if(data.ip === '::ffff:127.0.0.1') + data.ip = '84.117.82.122'; this.info.ip = data.ip; this.setGeo(data.ip); } diff --git a/public/css/style.css b/public/css/style.css index f5ede69..8172a10 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -250,6 +250,10 @@ table td i:before { width: 110px; } +.th-peerPropagationTime { + width: 120px; +} + .th-peerPropagationChart { width: 140px; } diff --git a/views/index.jade b/views/index.jade index 8fb01c5..4213fe3 100644 --- a/views/index.jade +++ b/views/index.jade @@ -125,7 +125,7 @@ block content i.icon-check-o(data-toggle="tooltip", data-placement="top", title="Block transactions", ng-click="orderTable(['-stats.active', '-stats.block.transactions.length'], false)") th.th-blocktime i.icon-time(data-toggle="tooltip", data-placement="top", title="Last block time", ng-click="orderTable(['-stats.active', '-stats.block.received'], false)") - th + th.th-peerPropagationTime i.icon-gas(data-toggle="tooltip", data-placement="top", title="Propagation time", ng-click="orderTable(['-stats.active', '-stats.block.number', 'stats.block.propagation'], false)") th.th-peerPropagationChart th @@ -148,7 +148,8 @@ block content span.small {{node.stats.block.hash | hashFilter}} td(style="padding-left: 14px;") {{node.stats.block.transactions.length || 0}} td(class="{{ node.stats.block.arrived | timeClass : node.stats.active }}") {{node.stats.block.arrived | blockTimeFilter }} - td(class="{{ node.stats | propagationTimeClass : bestBlock }}") {{node.stats.block.propagation | blockPropagationFilter}} + td(class="{{ node.stats | propagationTimeClass : bestBlock }}") div.propagationBox + span {{node.stats.block.propagation | blockPropagationFilter}} td.peerPropagationChart(class="{{node.id}}") td(class="{{ node.stats.uptime | upTimeClass : node.stats.active }}") {{ node.stats.uptime | upTimeFilter }}