added hashrate

This commit is contained in:
cubedro
2015-04-24 01:38:09 +03:00
parent dfaed30cab
commit 927794469a
3 changed files with 21 additions and 2 deletions

View File

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

View File

@@ -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')