From f6874afbef2dc5c70a8fbb7fe8cfd88fa51286a6 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 22 Jun 2020 10:32:46 -0400 Subject: [PATCH] fix another JSON comma missing fixes #1024 Change-Id: I859ecaae309335a1d8025a9e3a2ec3ca942a62f5 --- daemon/statistics.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/daemon/statistics.c b/daemon/statistics.c index 3d7b4743b..ffc61ae73 100644 --- a/daemon/statistics.c +++ b/daemon/statistics.c @@ -233,8 +233,12 @@ void statistics_update_oneway(struct call* c) { #define SM_PUSH(ret, m) \ do { \ struct stats_metric *last = NULL; \ - if (ret->tail) \ - last = ret->tail->data; \ + for (GList *l_last = ret->tail; l_last; l_last = l_last->prev) { \ + last = l_last->data; \ + if (last->label) \ + break; \ + last = NULL; \ + } \ if (!m->is_bracket && last) { \ if (!last->is_bracket || last->is_close_bracket) \ m->is_follow_up = 1; \