Skip to content

Commit

Permalink
[fix] Ensure that tags are properly set before appending to them.
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Mar 13, 2013
1 parent 5bb3ab1 commit 1db34f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/godot/reactor/tag.js
Expand Up @@ -25,9 +25,9 @@ var Tag = module.exports = function (tag, reactor) {
this.stream = new ReadWriteStream();
this.reactor = reactor.createStream(this.stream);
this.reactor.on('data', function (data) {
data.tags = data.tags || [];
data.tags.push(self.tag + ':' + data.metric)
data.metric = data._metric;
data.tags = data.tags || [];
delete data._metric;
self.emit('data', data);
});
Expand Down

0 comments on commit 1db34f5

Please sign in to comment.