fixed networkHashrate bug when null

pull/5/head
cubedro 10 years ago
parent 1aa87c2d7f
commit 305f90d536
  1. 2
      dist/js/netstats.min.js
  2. 2
      dist/js/netstats.min.js.map
  3. 3
      public/js/filters.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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

Loading…
Cancel
Save