Browse Source

TT#82401 amend stats gather to keep track of braces

Change-Id: I042179fe26118aef34e84412c3790059b7f6e1a6
changes/14/40714/2
Richard Fuchs 6 years ago
parent
commit
6d2aeccda6
2 changed files with 5 additions and 1 deletions
  1. +4
    -1
      daemon/statistics.c
  2. +1
    -0
      include/statistics.h

+ 4
- 1
daemon/statistics.c View File

@ -330,10 +330,13 @@ void statistics_update_oneway(struct call* c) {
|| m->label[0] == '{' \
|| m->label[0] == '}' \
|| m->label[0] == ']') \
&& m->label[1] == 0) { \
&& m->label[1] == 0) \
{ \
m->is_bracket = 1; \
if (m->label[0] == '}' || m->label[0] == ']') \
m->is_close_bracket = 1; \
if (m->label[0] == '{' || m->label[0] == '}') \
m->is_brace = 1; \
} \
SM_PUSH(ret, m); \
} while (0)


+ 1
- 0
include/statistics.h View File

@ -100,6 +100,7 @@ struct stats_metric {
int64_t int_value;
int is_bracket;
int is_close_bracket;
int is_brace;
int is_follow_up;
int is_int;
};


Loading…
Cancel
Save