diff options
Diffstat (limited to 'web/api/web_api_v1.c')
-rw-r--r-- | web/api/web_api_v1.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/web/api/web_api_v1.c b/web/api/web_api_v1.c index 76e107b142..d335dd687d 100644 --- a/web/api/web_api_v1.c +++ b/web/api/web_api_v1.c @@ -1089,19 +1089,18 @@ inline int web_client_api_request_v1_info_fill_buffer(RRDHOST *host, BUFFER *wb) buffer_strcat(wb, "\t\"metrics-count\": "); analytics_get_data(analytics_data.netdata_metrics_count, wb); - buffer_strcat(wb, ",\n"); #if defined(ENABLE_ML) + buffer_strcat(wb, ",\n"); char *ml_info = ml_get_host_info(host); buffer_strcat(wb, "\t\"ml-info\": "); buffer_strcat(wb, ml_info); - buffer_strcat(wb, "\n"); free(ml_info); #endif - buffer_strcat(wb, "}"); + buffer_strcat(wb, "\n}"); return 0; } |