Skip to content

Commit

Permalink
Merge pull request #208 from draco2003/remove_valuesPerSecond
Browse files Browse the repository at this point in the history
skip setting intermediate variable
  • Loading branch information
mrtazz committed Dec 15, 2012
2 parents 37b2567 + a73d5fa commit 641e4ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/process_metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ var process_metrics = function (metrics, flushInterval, ts, flushCallback) {
var value = counters[key];

// calculate "per second" rate
var valuePerSecond = value / (flushInterval / 1000);
counter_rates[key] = valuePerSecond;
counter_rates[key] = value / (flushInterval / 1000);
}

for (key in timers) {
Expand Down

0 comments on commit 641e4ac

Please sign in to comment.