summaryrefslogtreecommitdiffstats
path: root/src/health.c
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-11-13 12:57:31 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-11-13 12:57:31 +0200
commit819cd1a713ac1811a07e8d7390042c6cbc63b20c (patch)
treee021ad26e64fe039cf351025ca8a0cfae55ecdc6 /src/health.c
parenta19ead105eeedcf7b01ec14a892d2e799e4dcba6 (diff)
fix invalid chart id and name shown at the variables call
Diffstat (limited to 'src/health.c')
-rw-r--r--src/health.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/health.c b/src/health.c
index 280c913f41..aab9bf493d 100644
--- a/src/health.c
+++ b/src/health.c
@@ -682,7 +682,7 @@ void health_api_v1_chart_variables2json(RRDSET *st, BUFFER *buf) {
.counter = 0
};
- buffer_sprintf(buf, "{\n\t\"chart\": \"%s.%s\",\n\t\"chart_name\": \"%s.%s\",\n\t\"chart_variables\": {", st->type, st->id, st->type, st->name);
+ buffer_sprintf(buf, "{\n\t\"chart\": \"%s\",\n\t\"chart_name\": \"%s\",\n\t\"chart_variables\": {", st->id, st->name);
avl_traverse_lock(&st->variables_root_index, single_variable2json, (void *)&helper);
buffer_sprintf(buf, "\n\t},\n\t\"family\": \"%s\",\n\t\"family_variables\": {", st->family);
helper.counter = 0;