fixed frontent max block

This commit is contained in:
cubedro 2015-06-17 04:20:43 +03:00
parent 80dc078839
commit 0ff2d03a05
3 changed files with 6 additions and 6 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

@ -543,12 +543,12 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, $localStorage, soc
var bestBlock = _.max($scope.nodes, function (node) var bestBlock = _.max($scope.nodes, function (node)
{ {
if( $scope.chains[node.stats.block.number].fork === node.stats.block.fork && $scope.chains[node.stats.block.number].score / $scope.maxScore >= 0.5 ) // if( $scope.chains[node.stats.block.number].fork === node.stats.block.fork && $scope.chains[node.stats.block.number].score / $scope.maxScore >= 0.5 )
{ // {
return parseInt(node.stats.block.number); return parseInt(node.stats.block.number);
} // }
return 0; // return 0;
}).stats.block.number; }).stats.block.number;
if( bestBlock !== $scope.bestBlock ) if( bestBlock !== $scope.bestBlock )