mirror of https://gerrit.osmocom.org/libosmocore
stats: Fix handling of multiple resporters
Currently the reporter loop is aborted, if the event would be ignored due to an insufficient max_level. Thus the reporters that happen to be stored afterwards would be skipped even if their level were sufficient. This commit replaces the conditional 'return' statement by a considtional 'continue' statement to ensure the processing of the list tail. Sponsored-by: On-Waves ehf
This commit is contained in:
parent
aed7c125fd
commit
8a97cb9111
|
@ -593,7 +593,7 @@ static int rate_ctr_handler(
|
|||
|
||||
if (!osmo_stats_reporter_check_config(srep,
|
||||
ctrg->idx, ctrg->desc->class_id))
|
||||
return 0;
|
||||
continue;
|
||||
|
||||
osmo_stats_reporter_send_counter(srep, ctrg, desc,
|
||||
ctr->current, delta);
|
||||
|
@ -647,7 +647,7 @@ static int osmo_stat_item_handler(
|
|||
|
||||
if (!osmo_stats_reporter_check_config(srep,
|
||||
statg->idx, statg->desc->class_id))
|
||||
return 0;
|
||||
continue;
|
||||
|
||||
osmo_stats_reporter_send_item(srep, statg,
|
||||
item->desc, value);
|
||||
|
|
Loading…
Reference in New Issue