aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2018-10-04 13:22:15 +0200
committerOliver Smith <osmith@sysmocom.de>2018-10-04 14:07:05 +0200
commit2043db02362ff94463fb8a797724f36bef3e0090 (patch)
tree88cf598a319eba8c6d22308ce25fd20c589e5210
parent6e141b1b8da4bc7f8c526efe7c7dafcf61fc601b (diff)
osmo_bsc_main.c: initialize rate counters
main() was missing a call to rate_ctr_init(). Without it, the counters increased properly, but the times per second / minute / hour etc. values would always stay at zero. Change-Id: I4466a7aec51673c79b67614c9dde987633e379e0 Related: OS#3579
-rw-r--r--src/osmo-bsc/osmo_bsc_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c
index 60175e169..468b58e2b 100644
--- a/src/osmo-bsc/osmo_bsc_main.c
+++ b/src/osmo-bsc/osmo_bsc_main.c
@@ -805,6 +805,7 @@ int main(int argc, char **argv)
osmo_init_logging2(tall_bsc_ctx, &log_info);
osmo_stats_init(tall_bsc_ctx);
+ rate_ctr_init(tall_bsc_ctx);
/* Allocate global gsm_network struct */
rc = bsc_network_alloc();