Skip to content

Commit

Permalink
don\'t die when receiving unusual data
Browse files Browse the repository at this point in the history
  • Loading branch information
avleen authored and kastner committed Apr 11, 2011
1 parent ed5a1ed commit c8a3916
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stats.js
Expand Up @@ -36,6 +36,10 @@ 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] === undefined) {
sys.log('Bad line: ' + fields);
continue;
}
if (fields[1].trim() == "ms") {
if (! timers[key]) {
timers[key] = [];
Expand Down

0 comments on commit c8a3916

Please sign in to comment.