fixed networkHashrate bug when null

This commit is contained in:
cubedro 2015-05-27 09:20:57 +03:00
parent 1aa87c2d7f
commit 305f90d536
3 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -291,6 +291,9 @@ angular.module('netStatsApp.filters', [])
})
.filter('networkHashrateFilter', ['$sce', '$filter', function($sce, filter) {
return function(hashes, isMining) {
if(hashes === null)
hashes = 0;
var result = 0;
var unit = 'K';