From e0629d48e1aa9ca26656294dbb6f037b3fe01f54 Mon Sep 17 00:00:00 2001 From: goir Date: Wed, 5 Dec 2012 22:11:41 +0100 Subject: [PATCH] Update lib/process_metrics.js fixed pctThreshold replace if you specify floating point values. --- lib/process_metrics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/process_metrics.js b/lib/process_metrics.js index 44ad55e..bcccfae 100644 --- a/lib/process_metrics.js +++ b/lib/process_metrics.js @@ -50,7 +50,7 @@ var process_metrics = function (metrics, flushInterval, ts, flushCallback) { } var clean_pct = '' + pct; - clean_pct.replace('.', '_'); + clean_pct = clean_pct.replace('.', '_'); current_timer_data["mean_" + clean_pct] = mean; current_timer_data["upper_" + clean_pct] = maxAtThreshold; current_timer_data["sum_" + clean_pct] = sum;