MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / add_stats_group

Function add_stats_group

statistics.c:1036–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1034}
1035
1036int add_stats_group(group_stats *grp, stat_var *stat)
1037{
1038 stat_var **stats = shm_realloc(grp->vars, sizeof(stat_var) * grp->no + 1);
1039 if (!stats)
1040 return -1;
1041 grp->vars = stats;
1042 grp->vars[grp->no++] = stat;
1043 stat->flags |= STAT_HAS_GROUP;
1044 return 0;
1045}
1046
1047group_stats *get_stat_group(stat_var *stat)
1048{

Callers 2

init_pkg_statsFunction · 0.85

Calls 1

shm_reallocFunction · 0.85

Tested by

no test coverage detected