|
|
@ -94,8 +94,8 @@ function StatsCtrl($scope, $filter, socket, _, toastr) { |
|
|
|
|
|
|
|
|
|
|
|
function socketAction(action, data) |
|
|
|
function socketAction(action, data) |
|
|
|
{ |
|
|
|
{ |
|
|
|
console.log('Action: ', action); |
|
|
|
// console.log('Action: ', action);
|
|
|
|
console.log('Data: ', data); |
|
|
|
// console.log('Data: ', data);
|
|
|
|
|
|
|
|
|
|
|
|
switch(action) { |
|
|
|
switch(action) { |
|
|
|
case "init": |
|
|
|
case "init": |
|
|
@ -230,9 +230,8 @@ function StatsCtrl($scope, $filter, socket, _, toastr) { |
|
|
|
|
|
|
|
|
|
|
|
function getMinersNames() |
|
|
|
function getMinersNames() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if($scope.miners.length > 0) { |
|
|
|
if($scope.miners.length > 0) |
|
|
|
console.log('miners', $scope.miners); |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
_.forIn($scope.miners, function(value, key) |
|
|
|
_.forIn($scope.miners, function(value, key) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(value.name !== false) |
|
|
|
if(value.name !== false) |
|
|
|