Permalink
Browse files

Merge pull request #208 from draco2003/remove_valuesPerSecond

skip setting intermediate variable
  • Loading branch information...
2 parents 37b2567 + a73d5fa commit 641e4ac4c4bb66516d344cc096ae9c931a6ccc2a @mrtazz mrtazz committed Dec 15, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/process_metrics.js
View
3 lib/process_metrics.js
@@ -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) {

0 comments on commit 641e4ac

Please sign in to comment.