Skip to content

Commit

Permalink
trim whitespace before checking if the message type is "ms" (timer)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabineau authored and kastner committed Feb 13, 2011
1 parent 1b4d284 commit 890bdab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stats.js
Expand Up @@ -36,7 +36,7 @@ config.configFile(process.argv[2], function (config, oldConfig) {
for (var i = 0; i < bits.length; i++) {
var sampleRate = 1;
var fields = bits[i].split("|");
if (fields[1] == "ms") {
if (fields[1].trim() == "ms") {
if (! timers[key]) {
timers[key] = [];
}
Expand Down

0 comments on commit 890bdab

Please sign in to comment.