added hashrate
This commit is contained in:
@@ -184,7 +184,7 @@ div.small-title-miner {
|
||||
|
||||
.page-latency {
|
||||
position: absolute;
|
||||
top: 400px;
|
||||
top: 395px;
|
||||
left: 15px;
|
||||
}
|
||||
|
||||
@@ -239,7 +239,7 @@ table td.peerPropagationChart {
|
||||
}
|
||||
|
||||
.th-nodetype {
|
||||
width: 200px;
|
||||
width: 220px;
|
||||
}
|
||||
|
||||
.th-latency {
|
||||
|
||||
@@ -42,6 +42,22 @@ angular.module('netStatsApp.filters', [])
|
||||
return (! mining ? 'icon-cancel' : 'icon-check');
|
||||
};
|
||||
})
|
||||
.filter('hashpowerClass', function() {
|
||||
return function(mining) {
|
||||
if(! mining)
|
||||
return 'text-gray';
|
||||
|
||||
return 'text-success';
|
||||
};
|
||||
})
|
||||
.filter('hashrateFilter', function() {
|
||||
return function(hashrate) {
|
||||
if(typeof hashrate === 'undefined' || !hashrate)
|
||||
return 0;
|
||||
|
||||
return hashrate/1000;
|
||||
}
|
||||
})
|
||||
.filter('nodeVersion', function($sce) {
|
||||
return function(version) {
|
||||
if(typeof version !== 'undefined')
|
||||
|
||||
Reference in New Issue
Block a user