Skip to content

Commit

Permalink
Only push addresses that have a worker name.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrheinen committed Dec 17, 2017
1 parent 7673f75 commit 2e23358
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ function handleMinerStats(urlParts, response){
for (var i=0; i<replies[3].length; i++) {
var key = replies[3][i];
var nameOffset = key.indexOf('+');
workers.push(key.substr(nameOffset + 1));
if (nameOffset != -1) {
workers.push(key.substr(nameOffset + 1));
}
}

charts.getUserChartsData(address, replies[1], function(error, chartsData) {
Expand Down

0 comments on commit 2e23358

Please sign in to comment.