Skip to content

Commit

Permalink
skip setting intermediate variable
Browse files Browse the repository at this point in the history
  • Loading branch information
draco2003 committed Dec 12, 2012
1 parent a0aac23 commit a73d5fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/process_metrics.js
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 a73d5fa

Please sign in to comment.