added propagation time

pull/5/head
cubedro 10 years ago
parent f76e690f90
commit eb7186e9a4
  1. 4
      models/node.js
  2. 5
      views/index.jade

@ -16,7 +16,9 @@ var Node = function Node(data)
difficulty: 0,
number: 0,
gasLimit: 0,
timestamp: 0
timestamp: 0,
arrival: 0,
propagation: 0
},
blocktimeAvg: 0,
blockTimes: [],

@ -93,7 +93,9 @@ block content
th
i.icon-time(data-toggle="tooltip", data-placement="top", title="Last block time")
th
i.icon-clock(data-toggle="tooltip", data-placement="top", title="Up-time")
i.icon-clock(data-toggle="tooltip", data-placement="top", title="Propagation time")
th
i.icon-bulb(data-toggle="tooltip", data-placement="top", title="Up-time")
tbody
tr(ng-repeat='node in nodes', class="{{ node.stats | mainClass : bestBlock }}")
td(rel="{{node.id}}")
@ -113,4 +115,5 @@ block content
//- div.small Difficulty: {{node.stats.block.difficulty | gasFilter}} | Gas used: {{node.stats.block.gasUsed | gasFilter}} | Min gas price: {{node.stats.block.minGasPrice | gasFilter}} | Gas limit: {{node.stats.block.gasLimit | gasFilter}}
td(style="padding-left: 18px;") {{node.stats.block.txCount}}
td(class="{{ node.stats.block.timestamp | timeClass }}") {{node.stats.block.timestamp | blockTimeFilter }}
td(class="{{ node.stats.block.timestamp | timeClass }}") {{node.stats.block.propagation}} ms
td(class="{{ node.stats.uptime | upTimeClass }}") {{ node.stats.uptime | upTimeFilter }}

Loading…
Cancel
Save