@cryptotaxi247 / netdata-1 / commits / f713296a7

Properly set start/shutdown times to parent/child (#18668)

Stelios Fragkakis committed Oct 3, 2024 at 18:12 UTC f713296a75ce3a3844d46371e121ac304271be71
1 file changed +4
src/streaming/stream_path.c
+4
@@ -24,6 +24,8 @@ static void stream_path_clear(STREAM_PATH *p) {
24 p->first_time_t = 0;
25 p->capabilities = 0;
26 p->flags = STREAM_PATH_FLAG_NONE;
27 + p->start_time = 0;
28 + p->shutdown_time = 0;
29 }
30
31 static void rrdhost_stream_path_clear_unsafe(RRDHOST *host, bool destroy) {
@@ -220,6 +222,8 @@ static bool parse_single_path(json_object *jobj, const char *path, STREAM_PATH *
222 JSONC_PARSE_INT64_OR_ERROR_AND_RETURN(jobj, path, "hops", p->hops, error, true);
223 JSONC_PARSE_UINT64_OR_ERROR_AND_RETURN(jobj, path, "since", p->since, error, true);
224 JSONC_PARSE_UINT64_OR_ERROR_AND_RETURN(jobj, path, "first_time_t", p->first_time_t, error, true);
225 + JSONC_PARSE_INT64_OR_ERROR_AND_RETURN(jobj, path, "start_time", p->start_time, error, true);
226 + JSONC_PARSE_INT64_OR_ERROR_AND_RETURN(jobj, path, "shutdown_time", p->shutdown_time, error, true);
227 JSONC_PARSE_ARRAY_OF_TXT2BITMAP_OR_ERROR_AND_RETURN(jobj, path, "flags", STREAM_PATH_FLAGS_2id_one, p->flags, error, true);
228 JSONC_PARSE_ARRAY_OF_TXT2BITMAP_OR_ERROR_AND_RETURN(jobj, path, "capabilities", stream_capabilities_parse_one, p->capabilities, error, true);
229