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-12-14 10:30:09 +0100 |
commit | 25191776a21e0b9ccfe1bd1f764473fdb21fe662 (patch) | |
tree | 22ff2c11f1b1849f7a89fac5cb2d39fd30fce804 | |
parent | 683e0ebbe83188d2382042481b22e23910c38acc (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.
Conflicts:
src/main.c
src/main_stp.c
-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 <osmocore/talloc.h> +#include <osmocore/rate_ctr.h> #include <osmocom/vty/vty.h> #include <osmocom/vty/telnet_interface.h> @@ -61,6 +62,8 @@ int main(int argc, char **argv) struct mtp_link_set *set; struct ss7_application *app; + rate_ctr_init(NULL); + thread_init(); log_init(&log_info); diff --git a/src/main_stp.c b/src/main_stp.c index b87a6cb..39e8926 100644 --- a/src/main_stp.c +++ b/src/main_stp.c @@ -33,6 +33,7 @@ #include <osmocom/m2ua/m2ua_msg.h> #include <osmocore/talloc.h> +#include <osmocore/rate_ctr.h> #include <osmocom/sccp/sccp.h> @@ -198,6 +199,8 @@ int main(int argc, char **argv) int rc; struct ss7_application *app; + rate_ctr_init(NULL); + thread_init(); log_init(&log_info); |