aboutsummaryrefslogtreecommitdiffstats
path: root/src/main_stp.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-11-20 13:26:31 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-11-20 13:26:31 +0100
commitdf38eb1b4c3084c2e283b70834f5fc8b1d876135 (patch)
treeb3319b2ab2738a3b63ebc38ce422759004f00cc0 /src/main_stp.c
parente616863190aa9ffcdfab998f133306d7638045c0 (diff)
rate_ctr: Initialize the rate_ctr to update them properly
This way we get proper information about packets per second/hour and minute. Right now we only count the total.
Diffstat (limited to 'src/main_stp.c')
-rw-r--r--src/main_stp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main_stp.c b/src/main_stp.c
index afb5a6a..fd20eb3 100644
--- a/src/main_stp.c
+++ b/src/main_stp.c
@@ -33,6 +33,7 @@
#include <osmocom/m2ua/m2ua_msg.h>
#include <osmocom/core/application.h>
+#include <osmocom/core/rate_ctr.h>
#include <osmocom/core/talloc.h>
#include <osmocom/sccp/sccp.h>
@@ -197,6 +198,8 @@ int main(int argc, char **argv)
int rc;
struct ss7_application *app;
+ rate_ctr_init(NULL);
+
thread_init();
osmo_init_logging(&log_info);