Skip to content

Commit

Permalink
Fix charts for ids with dots
Browse files Browse the repository at this point in the history
  • Loading branch information
selaux committed Jun 14, 2014
1 parent 02d974d commit 087dd6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/views/aggregatedMiners.js
Expand Up @@ -19,7 +19,7 @@ module.exports = View.extend({
return _(val)
.keys()
.filter(function (key) { return key.split('.')[0] === 'currentHashrate'; })
.map(function (key) { return key.split('.')[1]; })
.map(function (key) { return key.split('.').slice(1).join('.'); })
.value();
})
.flatten()
Expand Down
2 changes: 1 addition & 1 deletion lib/views/revenue.js
Expand Up @@ -19,7 +19,7 @@ module.exports = View.extend({
return _(val)
.keys()
.filter(function (key) { return key.split('.')[0] === 'revenue'; })
.map(function (key) { return key.split('.')[1]; })
.map(function (key) { return key.split('.').slice(1).join('.'); })
.value();
})
.flatten()
Expand Down

0 comments on commit 087dd6e

Please sign in to comment.