Skip to content

Commit

Permalink
fix(typo): correct statusCode typo
Browse files Browse the repository at this point in the history
  • Loading branch information
peteyycz committed Oct 6, 2015
1 parent 69abef6 commit a593b3e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/providers/httpTransaction/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ util.inherits(HttpTransaction, events.EventEmitter);
HttpTransaction.prototype.startCollecting = function () {
debug('HttpTransaction started collecting');
var _this = this;
this.httpIntervalId = setInterval(function () {
this.transactionIntervalId = setInterval(function () {
_this._send();
}, this.collectInterval);
this.httpRpmMetricsIntervalId = setInterval(function () {
this.rpmMetricsIntervalId = setInterval(function () {
_this._sendRpm();
}, 60 * 1000);
};

HttpTransaction.prototype.stopCollecting = function () {
debug('HttpTransaction stopped collecting');
clearInterval(this.httpIntervalId);
clearInterval(this.httpRpmMetricsIntervalId);
clearInterval(this.transactionIntervalId);
clearInterval(this.rpmMetricsIntervalId);
};

HttpTransaction.prototype.getService = function () {
Expand Down Expand Up @@ -159,9 +159,9 @@ HttpTransaction.prototype.onServerSend = function (data) {
}

if (!this.rpmMetrics[trace.statusCode]) {
this.rpmMetrics[trace.statuCode] = 1;
this.rpmMetrics[trace.statusCode] = 1;
} else {
this.rpmMetrics[trace.statuCode]++;
this.rpmMetrics[trace.statusCode]++;
}

delete this.partials[data.id];
Expand Down

0 comments on commit a593b3e

Please sign in to comment.