From 94c9fa6bc8e5d82fdcc3469a2f0463d113b17cc2 Mon Sep 17 00:00:00 2001 From: EOS Classic Date: Sun, 16 Sep 2018 03:24:06 +0900 Subject: [PATCH] Revert "fixed totalDifficultyFilter, fixed gaslimit number format" This reverts commit 5f786d8a2b050b09feb6d7b1e5fbff8405617f90. --- src/js/filters.js | 6 +++--- src/views/index.jade | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/js/filters.js b/src/js/filters.js index c8947e1..cfd3eec 100644 --- a/src/js/filters.js +++ b/src/js/filters.js @@ -75,7 +75,7 @@ angular.module('netStatsApp.filters', []) return $sce.trustAsHtml('' + filter('number')(result.toFixed(1)) + ' ' + unit + 'H/s'); }; }]) -.filter('totalDifficultyFilter', ['$sce', '$filter', function($sce, filter) { +.filter('totalDifficultyFilter', function() { return function(hashes) { var result = hashes; var units = ['', 'K', 'M', 'G', 'T', 'P']; @@ -87,9 +87,9 @@ angular.module('netStatsApp.filters', []) unit = units[i]; } - return $sce.trustAsHtml(filter('number')(result.toFixed(2)) + ' ' + unit + 'H'); + return result.toFixed(2) + ' ' + unit + 'H'; }; -}]) +}) .filter('nodeVersion', function($sce) { return function(version) { if(version) diff --git a/src/views/index.jade b/src/views/index.jade index 1af92c8..ff9739b 100644 --- a/src/views/index.jade +++ b/src/views/index.jade @@ -55,7 +55,8 @@ block content i.icon-difficulty div.big-details-holder span.small-title difficulty - span.big-details(ng-bind-html="lastDifficulty | totalDifficultyFilter") + span.big-details + span.small-hash {{ lastDifficulty | totalDifficultyFilter }} div.clearfix div.clearfix @@ -78,7 +79,7 @@ block content div.gasprice.text-info i.icon-gasprice span.small-title gas limit - span.small-value {{ bestStats.block.gasLimit | number }} gas + span.small-value {{ bestStats.block.gasLimit }} gas div.col-xs-6.col-sm-6.col-md-6.col-lg-2.stat-holder.box div.page-latency(class="{{ {active: true, latency: latency} | latencyClass }}") i.icon-clock