@cryptotaxi247 / netdata-1 / commits / b1c78c095

fix json generation of apps.plugin processes function info (#19732)

Costa Tsaousis committed Feb 28, 2025 at 09:33 UTC b1c78c095cf42826990c9d002996e0528dbf6c8f
1 file changed +2 -1
src/collectors/apps.plugin/apps_functions.c
+2 -1
@@ -171,11 +171,12 @@ void function_processes(const char *transaction, char *function,
171 buffer_json_member_add_time_t(wb, "update_every", update_every);
172 buffer_json_member_add_boolean(wb, "has_history", false);
173 buffer_json_member_add_string(wb, "help", APPS_PLUGIN_PROCESSES_FUNCTION_DESCRIPTION);
174 - buffer_json_member_add_array(wb, "data");
174
175 if(info)
176 goto close_and_send;
177
178 + buffer_json_member_add_array(wb, "data");
179 +
180 uint64_t cpu_divisor = NSEC_PER_SEC / 100;
181 unsigned int memory_divisor = 1024 * 1024;
182 unsigned int io_divisor = 1024 * RATES_DETAIL;