From eb7186e9a4462e6bff402d1c38d518fa23961347 Mon Sep 17 00:00:00 2001 From: cubedro Date: Mon, 23 Feb 2015 19:10:17 +0200 Subject: [PATCH] added propagation time --- models/node.js | 4 +++- views/index.jade | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/models/node.js b/models/node.js index f91afdd..5f58bd3 100644 --- a/models/node.js +++ b/models/node.js @@ -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: [], diff --git a/views/index.jade b/views/index.jade index 4a6cca9..54e999a 100644 --- a/views/index.jade +++ b/views/index.jade @@ -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 }}