From 1742b4d728511847944b0a9ac4af02b2e038a724 Mon Sep 17 00:00:00 2001 From: Michael Schenck Date: Tue, 21 Oct 2014 13:31:40 -0400 Subject: [PATCH] Including vl->type, even when vl->type_instance is available to avoid over-writing values (i.e. with the 'df' plugin) --- src/write_tsdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/write_tsdb.c b/src/write_tsdb.c index aeed6350..efc71467 100644 --- a/src/write_tsdb.c +++ b/src/write_tsdb.c @@ -387,8 +387,8 @@ static int wt_format_name(char *ret, int ret_len, ssnprintf(ret, ret_len, "%s%s.%s.%s", prefix, vl->plugin, vl->plugin_instance, vl->type); } else { - ssnprintf(ret, ret_len, "%s%s.%s.%s", - prefix, vl->plugin, vl->plugin_instance, vl->type_instance); + ssnprintf(ret, ret_len, "%s%s.%s.%s.%s", + prefix, vl->plugin, vl->plugin_instance, vl->type, vl->type_instance); } sfree(temp); -- 2.30.2