diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-17 18:16:00 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-17 18:18:12 +0800 |
commit | b2c38ebb1f2e9f670b3a59caca9e6195277b62be (patch) | |
tree | 03fb94bdb12e550b46ec92343212a7fc823282d0 /openbsc/src/nat/bsc_nat_vty.c | |
parent | f6d0e06940d6430ef58ecd095702e8d1d323d605 (diff) |
nat: Switch per BSC counters to the rate ctr.
This is switching the simple statistics to the rate counter
and is updating all users...
Diffstat (limited to 'openbsc/src/nat/bsc_nat_vty.c')
-rw-r--r-- | openbsc/src/nat/bsc_nat_vty.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/openbsc/src/nat/bsc_nat_vty.c b/openbsc/src/nat/bsc_nat_vty.c index eea5dd894..c09eca4de 100644 --- a/openbsc/src/nat/bsc_nat_vty.c +++ b/openbsc/src/nat/bsc_nat_vty.c @@ -27,6 +27,7 @@ #include <openbsc/vty.h> #include <osmocore/talloc.h> +#include <osmocore/rate_ctr.h> #include <sccp/sccp.h> @@ -196,11 +197,7 @@ DEFUN(show_stats, vty_out(vty, " BSC lac: %d nr: %d%s", conf->lac, conf->nr, VTY_NEWLINE); - vty_out(vty, " SCCP Connnections %lu total, %lu calls%s", - counter_get(conf->stats.sccp.conn), - counter_get(conf->stats.sccp.calls), VTY_NEWLINE); - vty_out(vty, " BSC Connections %lu total%s", - counter_get(conf->stats.net.reconn), VTY_NEWLINE); + vty_out_rate_ctr_group(vty, " ", conf->stats.ctrg); } return CMD_SUCCESS; |