aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/bsc_vty.c
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-07-12 15:42:02 +0200
committerHarald Welte <laforge@gnumonks.org>2016-08-27 01:58:19 +0000
commit20423ea6cfdecd264b32c7fe5e15ee7de4455692 (patch)
treee62843a1ddcb0fc97891be516d57df4565de1447 /openbsc/src/libbsc/bsc_vty.c
parent4e699a9cbf418518265dc7b8b6b7fe250d87222d (diff)
libbsc/libmsc: convert old osmo counter into rate_ctrgs
rate counters support the export to statsd and can have a delta value. Change-Id: Ie749cebd53a0bb618d0e23d375885712078bf8dd
Diffstat (limited to 'openbsc/src/libbsc/bsc_vty.c')
-rw-r--r--openbsc/src/libbsc/bsc_vty.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c
index 6584cf0d6..fbaf06bfb 100644
--- a/openbsc/src/libbsc/bsc_vty.c
+++ b/openbsc/src/libbsc/bsc_vty.c
@@ -3784,18 +3784,22 @@ DEFUN(cfg_ts_e1_subslot,
void openbsc_vty_print_statistics(struct vty *vty, struct gsm_network *net)
{
vty_out(vty, "Channel Requests : %lu total, %lu no channel%s",
- osmo_counter_get(net->stats.chreq.total),
- osmo_counter_get(net->stats.chreq.no_channel), VTY_NEWLINE);
+ net->ratectrs->ctr[MSC_CTR_CHREQ_TOTAL].current,
+ net->ratectrs->ctr[MSC_CTR_CHREQ_NO_CHANNEL].current,
+ VTY_NEWLINE);
vty_out(vty, "Channel Failures : %lu rf_failures, %lu rll failures%s",
- osmo_counter_get(net->stats.chan.rf_fail),
- osmo_counter_get(net->stats.chan.rll_err), VTY_NEWLINE);
+ net->ratectrs->ctr[MSC_CTR_CHAN_RF_FAIL].current,
+ net->ratectrs->ctr[MSC_CTR_CHAN_RLL_ERR].current,
+ VTY_NEWLINE);
vty_out(vty, "Paging : %lu attempted, %lu complete, %lu expired%s",
- osmo_counter_get(net->stats.paging.attempted),
- osmo_counter_get(net->stats.paging.completed),
- osmo_counter_get(net->stats.paging.expired), VTY_NEWLINE);
+ net->ratectrs->ctr[MSC_CTR_PAGING_ATTEMPTED].current,
+ net->ratectrs->ctr[MSC_CTR_PAGING_COMPLETED].current,
+ net->ratectrs->ctr[MSC_CTR_PAGING_EXPIRED].current,
+ VTY_NEWLINE);
vty_out(vty, "BTS failures : %lu OML, %lu RSL%s",
- osmo_counter_get(net->stats.bts.oml_fail),
- osmo_counter_get(net->stats.bts.rsl_fail), VTY_NEWLINE);
+ net->ratectrs->ctr[MSC_CTR_BTS_OML_FAIL].current,
+ net->ratectrs->ctr[MSC_CTR_BTS_RSL_FAIL].current,
+ VTY_NEWLINE);
}
DEFUN(drop_bts,