Change in osmo-bsc[master]: stats: Fix stat group index for BTS stats.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

ipse gerrit-no-reply at lists.osmocom.org
Sat May 9 00:35:46 UTC 2020


ipse has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/18108 )

Change subject: stats: Fix stat group index for BTS stats.
......................................................................

stats: Fix stat group index for BTS stats.

osmo_stat_item_group_alloc() should be initialized with the BTS number.

Change-Id: Iedef08af56ab6985894d89ff7b285246424ca9e7
---
M src/osmo-bsc/gsm_data.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/src/osmo-bsc/gsm_data.c b/src/osmo-bsc/gsm_data.c
index 8b4cd4c..23a4e61 100644
--- a/src/osmo-bsc/gsm_data.c
+++ b/src/osmo-bsc/gsm_data.c
@@ -832,7 +832,7 @@
 		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);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/18108
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Iedef08af56ab6985894d89ff7b285246424ca9e7
Gerrit-Change-Number: 18108
Gerrit-PatchSet: 5
Gerrit-Owner: ipse <Alexander.Chemeris at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: ipse <Alexander.Chemeris at gmail.com>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200509/e1f9b2f4/attachment.htm>


More information about the gerrit-log mailing list