stats: Fix stat group index for BTS stats.

osmo_stat_item_group_alloc() should be initialized with the BTS number.

Change-Id: Iedef08af56ab6985894d89ff7b285246424ca9e7
This commit is contained in:
Alexander Chemeris 2020-05-08 01:46:30 +03:00 committed by ipse
parent 13e5aa24ce
commit 97a27214f1
1 changed files with 1 additions and 1 deletions

View File

@ -832,7 +832,7 @@ struct gsm_bts *gsm_bts_alloc(struct gsm_network *net, uint8_t bts_num)
talloc_free(bts);
return NULL;
}
bts->bts_statg = osmo_stat_item_group_alloc(bts, &bts_statg_desc, 0);
bts->bts_statg = osmo_stat_item_group_alloc(bts, &bts_statg_desc, bts->nr);
/* create our primary TRX */
bts->c0 = gsm_bts_trx_alloc(bts);