Merge pull request #47 from cubedro/develop

Fix for old clients & readme.md changes
This commit is contained in:
Marian OANCΞA 2015-04-06 07:31:37 +03:00
commit c46854461f
4 changed files with 8 additions and 5 deletions

View File

@ -15,7 +15,7 @@ Make sure you have node.js and npm installed.
Clone the repository and install the dependencies
```
```bash
git clone https://github.com/cubedro/eth-netstats
cd eth-netstats
npm install
@ -23,7 +23,7 @@ npm install
##Run
```
```bash
npm start
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 442 KiB

After

Width:  |  Height:  |  Size: 722 KiB

View File

@ -45,6 +45,10 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
$scope.$apply();
}, 1000);
$scope.getNumber = function(num) {
return new Array(num);
}
// Socket listeners
// ----------------
@ -158,10 +162,9 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
$scope.difficultyChange = $scope.bestStats.difficulty;
$scope.transactionDensity = $scope.bestStats.txDensity;
$scope.gasSpending = $scope.bestStats.gasSpending;
$scope.miners = $scope.bestStats.miners;
$scope.getNumber = function(num) {
return new Array(num);
if(typeof $scope.bestStats.miners !== 'undefined') {
$scope.miners = $scope.bestStats.miners;
}
jQuery('.spark-blocktimes').sparkline($scope.lastBlocksTime.reverse(), {type: 'bar', tooltipSuffix: 's'});