added node avg propagation time

This commit is contained in:
cubedro
2015-04-28 18:22:11 +03:00
parent f7186e0b3c
commit 6e3fb3559d
3 changed files with 31 additions and 0 deletions

View File

@@ -174,6 +174,23 @@ angular.module('netStatsApp.filters', [])
return 'text-danger'
};
})
.filter('propagationAvgTimeClass', function() {
return function(propagation) {
if(propagation == 0)
return 'text-info';
if(propagation < 1000)
return 'text-success';
if(propagation < 3000)
return 'text-warning';
if(propagation < 7000)
return 'text-orange';
return 'text-danger'
};
})
.filter('latencyFilter', function() {
return function(stats) {
if(stats.active === false)