added propagation time

This commit is contained in:
cubedro 2015-02-23 19:10:17 +02:00
parent f76e690f90
commit eb7186e9a4
2 changed files with 7 additions and 2 deletions

View File

@ -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: [],

View File

@ -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 }}