From 046634974785fe34616710b29462478f3eb14db2 Mon Sep 17 00:00:00 2001 From: draco2003 Date: Sat, 2 Mar 2013 00:28:19 +0000 Subject: [PATCH] pulled out the wrong set --- backends/graphite.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backends/graphite.js b/backends/graphite.js index 46cacd7..9e59fc0 100644 --- a/backends/graphite.js +++ b/backends/graphite.js @@ -110,10 +110,9 @@ var flush_stats = function graphite_flush(ts, metrics) { } for (key in timer_data) { + var namespace = timerNamespace.concat(key); + var the_key = namespace.join("."); for (timer_data_key in timer_data[key]) { - var namespace = timerNamespace.concat(key); - var the_key = namespace.join("."); - if (typeof(timer_data[key][timer_data_key]) === 'number') { statString += the_key + '.' + timer_data_key + ' ' + timer_data[key][timer_data_key] + ts_suffix; } else {