Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use counter_rates in graphite backent

  • Loading branch information...
commit d727054d0413e16b1e709d5b86cf592ca39586fb 1 parent a0aac23
@draco2003 draco2003 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  backends/graphite.js
View
2  backends/graphite.js
@@ -85,7 +85,7 @@ var flush_stats = function graphite_flush(ts, metrics) {
for (key in counters) {
var namespace = counterNamespace.concat(key);
var value = counters[key];
- var valuePerSecond = value / (flushInterval / 1000); // calculate "per second" rate
+ var valuePerSecond = counter_rates[key]; // pre-calculated "per second" rate
if (legacyNamespace === true) {
statString += namespace.join(".") + ' ' + valuePerSecond + ts_suffix;
Please sign in to comment.
Something went wrong with that request. Please try again.