Merge pull request #47 from cubedro/develop

Fix for old clients & readme.md changes
pull/5/head
Marian OANCΞA 10 years ago
commit c46854461f
  1. 4
      README.md
  2. BIN
      public/images/screenshot-old.jpg
  3. BIN
      public/images/screenshot.jpg
  4. 9
      public/js/controllers.js

@ -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

@ -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'});

Loading…
Cancel
Save