laforge has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmo-sccp/+/27327 )


Change subject: sccp_demo_user: enable stats / rate_counter timers
......................................................................

sccp_demo_user: enable stats / rate_counter timers

Change-Id: I135704d401de2cf439e51882e22323b31db14a2a
---
M examples/sccp_demo_user.c
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/27/27327/1

diff --git a/examples/sccp_demo_user.c b/examples/sccp_demo_user.c
index 84ad84b..1a4ebac 100644
--- a/examples/sccp_demo_user.c
+++ b/examples/sccp_demo_user.c
@@ -11,6 +11,8 @@
 #include <osmocom/core/logging.h>
 #include <osmocom/core/application.h>
 #include <osmocom/core/fsm.h>
+#include <osmocom/core/stats.h>
+#include <osmocom/core/rate_ctr.h>
 #include <osmocom/vty/vty.h>
 #include <osmocom/vty/telnet_interface.h>
 #include <osmocom/vty/logging.h>
@@ -260,6 +262,8 @@
        signal(SIGUSR1, &signal_handler);
        signal(SIGUSR2, &signal_handler);

+       osmo_stats_init(tall_ctx);
+       rate_ctr_init(tall_ctx);
        OSMO_ASSERT(osmo_ss7_init() == 0);
        osmo_fsm_log_addr(false);
        vty_info.tall_ctx = tall_ctx;

--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/27327
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I135704d401de2cf439e51882e22323b31db14a2a
Gerrit-Change-Number: 27327
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>
Gerrit-MessageType: newchange

Reply via email to