@cryptotaxi247 / netdata-1 / commits / 819cd1a71

fix invalid chart id and name shown at the variables call

Costa Tsaousis (ktsaou) committed Nov 13, 2016 at 12:57 UTC 819cd1a713ac1811a07e8d7390042c6cbc63b20c
1 file changed +1 -1
src/health.c
+1 -1
@@ -682,7 +682,7 @@ void health_api_v1_chart_variables2json(RRDSET *st, BUFFER *buf) {
682 .counter = 0
683 };
684
685 - 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);
685 + buffer_sprintf(buf, "{\n\t\"chart\": \"%s\",\n\t\"chart_name\": \"%s\",\n\t\"chart_variables\": {", st->id, st->name);
686 avl_traverse_lock(&st->variables_root_index, single_variable2json, (void *)&helper);
687 buffer_sprintf(buf, "\n\t},\n\t\"family\": \"%s\",\n\t\"family_variables\": {", st->family);
688 helper.counter = 0;