diff options
author | Harald Welte <laforge@osmocom.org> | 2022-02-24 20:39:36 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2022-02-24 20:40:24 +0100 |
commit | 218789e8338af397af755dd5bf0ec1fd3aaf67c3 (patch) | |
tree | f6cbd3677e665ee98760b3b4721651cec3a08b65 | |
parent | a1bf0c96eca2f444555e0ea5e1f17ea4cb745bee (diff) |
sccp_demo_user: enable stats / rate_counter timers
Change-Id: I135704d401de2cf439e51882e22323b31db14a2a
-rw-r--r-- | examples/sccp_demo_user.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ int main(int argc, char **argv) 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; |