From 71128cde106f9c53f1e17d2d219e7858b000d274 Mon Sep 17 00:00:00 2001 From: cubedro Date: Tue, 5 May 2015 10:18:36 +0300 Subject: [PATCH 1/3] fixed network hashrate --- models/history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/history.js b/models/history.js index 26fa9ed..cbe8f96 100644 --- a/models/history.js +++ b/models/history.js @@ -336,7 +336,7 @@ History.prototype.getAvgHashrate = function() var avgBlocktime = (_.sum(blocktimeHistory) / blocktimeHistory.length)/1000; - return avgDifficulty * 12 * ( 12 / avgBlocktime ); + return this.bestBlock().block.difficulty / 12 * ( 12 / avgBlocktime ); } History.prototype.getMinersCount = function() From d5b20903215bab969f2066fc304259e8017c9e04 Mon Sep 17 00:00:00 2001 From: cubedro Date: Tue, 5 May 2015 10:19:32 +0300 Subject: [PATCH 2/3] bumped client version --- public/js/controllers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/controllers.js b/public/js/controllers.js index e0d4f48..bf48fdf 100644 --- a/public/js/controllers.js +++ b/public/js/controllers.js @@ -34,7 +34,7 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, socket, _, toastr) $scope.latency = 0; - $scope.currentApiVersion = "0.0.7"; + $scope.currentApiVersion = "0.0.8"; $scope.predicate = ['-stats.active', '-stats.block.number', 'stats.block.propagation']; $scope.reverse = false; From 950ffa555ad74eef8817a34a985555df4b3f9a3e Mon Sep 17 00:00:00 2001 From: cubedro Date: Tue, 5 May 2015 10:23:55 +0300 Subject: [PATCH 3/3] fixed avg propagation class filter --- views/index.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.jade b/views/index.jade index 4a6fa95..b23211b 100644 --- a/views/index.jade +++ b/views/index.jade @@ -200,5 +200,5 @@ block content div.propagationBox span {{node.stats.block.propagation | blockPropagationFilter}} td.peerPropagationChart(class="{{node.id}}") - td(class="{{ node.stats | propagationNodeAvgTimeClass : node.stats.active }}") {{ node.stats.propagationAvg | blockPropagationFilter : '' }} + td(class="{{ node.stats | propagationNodeAvgTimeClass : bestBlock }}") {{ node.stats.propagationAvg | blockPropagationFilter : '' }} td(class="{{ node.stats.uptime | upTimeClass : node.stats.active }}") {{ node.stats.uptime | upTimeFilter }}