Skip to content

Commit

Permalink
reformat keyFlush log into key value pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
ickymettle authored and Daniel Schauenberg committed May 30, 2012
1 parent 11049a2 commit 087fde9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stats.js
Expand Up @@ -281,7 +281,7 @@ config.configFile(process.argv[2], function (config, oldConfig) {

// only show the top "keyFlushPercent" keys
for (var i = 0, e = sortedKeys.length * (keyFlushPercent / 100); i < e; i++) {
logMessage += timeString + " " + sortedKeys[i][1] + " " + sortedKeys[i][0] + "\n";
logMessage += timeString + " count=" + sortedKeys[i][1] + " key=" + sortedKeys[i][0] + "\n";
}

var logFile = fs.createWriteStream(keyFlushLog, {flags: 'a+'});
Expand Down

0 comments on commit 087fde9

Please sign in to comment.