commit
90d3dd182c
@ -27,7 +27,7 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
|
|||||||
|
|
||||||
$scope.latency = 0;
|
$scope.latency = 0;
|
||||||
|
|
||||||
$scope.predicate = 'info.name';
|
$scope.predicate = ['-stats.block.number', 'stats.block.propagation'];
|
||||||
$scope.reverse = false;
|
$scope.reverse = false;
|
||||||
|
|
||||||
$scope.orderTable = function(predicate, reverse)
|
$scope.orderTable = function(predicate, reverse)
|
||||||
|
@ -105,7 +105,7 @@ angular.module('netStatsApp.filters', [])
|
|||||||
.filter('latencyClass', function() {
|
.filter('latencyClass', function() {
|
||||||
return function(stats) {
|
return function(stats) {
|
||||||
if(stats.active === false)
|
if(stats.active === false)
|
||||||
return 'text-danger';
|
return 'text-gray';
|
||||||
|
|
||||||
if(stats.latency <= 100)
|
if(stats.latency <= 100)
|
||||||
return 'text-success';
|
return 'text-success';
|
||||||
@ -226,7 +226,7 @@ angular.module('netStatsApp.filters', [])
|
|||||||
function mainClass(node, bestBlock)
|
function mainClass(node, bestBlock)
|
||||||
{
|
{
|
||||||
if( ! node.active)
|
if( ! node.active)
|
||||||
return 'text-danger';
|
return 'text-gray';
|
||||||
|
|
||||||
if(node.peers === 0)
|
if(node.peers === 0)
|
||||||
return 'text-danger';
|
return 'text-danger';
|
||||||
|
@ -128,7 +128,7 @@ block content
|
|||||||
th.th-blocktime
|
th.th-blocktime
|
||||||
i.icon-time(data-toggle="tooltip", data-placement="top", title="Last block time", ng-click="orderTable('-stats.block.received', false)")
|
i.icon-time(data-toggle="tooltip", data-placement="top", title="Last block time", ng-click="orderTable('-stats.block.received', false)")
|
||||||
th
|
th
|
||||||
i.icon-gas(data-toggle="tooltip", data-placement="top", title="Propagation time", ng-click="orderTable('stats.block.propagation', false)")
|
i.icon-gas(data-toggle="tooltip", data-placement="top", title="Propagation time", ng-click="orderTable(['-stats.block.number', 'stats.block.propagation'], false)")
|
||||||
th.th-peerPropagationChart
|
th.th-peerPropagationChart
|
||||||
th
|
th
|
||||||
i.icon-bulb(data-toggle="tooltip", data-placement="top", title="Up-time", ng-click="orderTable('-stats.uptime', false)")
|
i.icon-bulb(data-toggle="tooltip", data-placement="top", title="Up-time", ng-click="orderTable('-stats.uptime', false)")
|
||||||
|
Loading…
Reference in New Issue
Block a user