diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-20 13:26:31 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-20 13:26:31 +0100 |
commit | df38eb1b4c3084c2e283b70834f5fc8b1d876135 (patch) | |
tree | b3319b2ab2738a3b63ebc38ce422759004f00cc0 | |
parent | e616863190aa9ffcdfab998f133306d7638045c0 (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.
-rw-r--r-- | src/main.c | 3 | ||||
-rw-r--r-- | src/main_stp.c | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -31,6 +31,7 @@ #include <ss7_application.h> #include <osmocom/core/application.h> +#include <osmocom/core/rate_ctr.h> #include <osmocom/core/talloc.h> #include <osmocom/vty/vty.h> @@ -60,6 +61,8 @@ int main(int argc, char **argv) struct mtp_link_set *set; struct ss7_application *app; + rate_ctr_init(NULL); + thread_init(); osmo_init_logging(&log_info); 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); |