[MERGED] osmo-pcu[master]: Adds rate_ctr_init in the startup of osmo-pcu

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Dec 22 14:09:43 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: Adds rate_ctr_init in the startup of osmo-pcu
......................................................................


Adds rate_ctr_init in the startup of osmo-pcu

Issue:Though the rate_ctr framework is used in osmo-pcu for bts statistics,
      the interval counters are always 0.
Fix:rate_ctr_init is added in the startup which arms the timer and hence
    the rate ctr intervals is displayed with proper values.

Change-Id: Ib0f33d2de9406aa7436aa9aeb6a8dabdff96383b
---
M src/pcu_main.cpp
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Max: Looks good to me, but someone else must approve
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp
index 4a75c79..0a0362b 100644
--- a/src/pcu_main.cpp
+++ b/src/pcu_main.cpp
@@ -221,6 +221,7 @@
 
 	osmo_init_logging(&gprs_log_info);
 	osmo_stats_init(tall_pcu_ctx);
+	rate_ctr_init(tall_pcu_ctx);
 	gprs_ns_set_log_ss(DNS);
 	bssgp_set_log_ss(DBSSGP);
 

-- 
To view, visit https://gerrit.osmocom.org/1428
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib0f33d2de9406aa7436aa9aeb6a8dabdff96383b
Gerrit-PatchSet: 3
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Owner: sivasankari <Sivasankari.Theerthagiri at radisys.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Holger Freyther <holger at freyther.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list