summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3c15b0e)
raw | patch | inline | side by side (parent: 3c15b0e)
author | Pierre-Yves Ritschard <pyr@spootnik.org> | |
Thu, 27 Nov 2014 09:08:43 +0000 (10:08 +0100) | ||
committer | Pierre-Yves Ritschard <pyr@spootnik.org> | |
Thu, 27 Nov 2014 09:08:43 +0000 (10:08 +0100) |
src/write_tsdb.c | patch | blob | history |
diff --git a/src/write_tsdb.c b/src/write_tsdb.c
index efc71467f39145238adc281ce2285d309c476ae2..b7f46f1b9abde92bae63eee39d244e7fa6380ae2 100644 (file)
--- a/src/write_tsdb.c
+++ b/src/write_tsdb.c
if (vl->plugin_instance[0] == '\0') {
ssnprintf(ret, ret_len, "%s%s.%s",
prefix, vl->plugin, ds_name);
- } else if (vl->type_instance == '\0') {
+ } else if (vl->type_instance[0] == '\0') {
ssnprintf(ret, ret_len, "%s%s.%s.%s.%s",
prefix, vl->plugin, vl->plugin_instance,
vl->type_instance, ds_name);