summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2017-07-08 18:00:36 +0900
committerIvan Kluchnikov <kluchnikovi@gmail.com>2017-07-11 16:28:16 +0300
commit28295c94d91c7415b15019c3a37dadc565da753f (patch)
tree1f952e5a477fb54761fe4a185343cd598141a5bb
parentb6c027d3fa4c0d217d4f4f47a5592a39aa46c830 (diff)
libmsc: Fix VTY output for handover counters.
Handover countrs belong to BSC, but we mistakenly take values from MSC counters. Change-Id: I9512330f2e91d2f526751c5228e6e8e0fe17d579
-rw-r--r--openbsc/src/libmsc/vty_interface_layer3.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/src/libmsc/vty_interface_layer3.c b/openbsc/src/libmsc/vty_interface_layer3.c
index 4cab1a50c..37e794f46 100644
--- a/openbsc/src/libmsc/vty_interface_layer3.c
+++ b/openbsc/src/libmsc/vty_interface_layer3.c
@@ -835,11 +835,11 @@ DEFUN(show_stats,
VTY_NEWLINE);
vty_out(vty, "Handover : %lu attempted, %lu no_channel, %lu timeout, "
"%lu completed, %lu failed%s",
- net->msc_ctrs->ctr[BSC_CTR_HANDOVER_ATTEMPTED].current,
- net->msc_ctrs->ctr[BSC_CTR_HANDOVER_NO_CHANNEL].current,
- net->msc_ctrs->ctr[BSC_CTR_HANDOVER_TIMEOUT].current,
- net->msc_ctrs->ctr[BSC_CTR_HANDOVER_COMPLETED].current,
- net->msc_ctrs->ctr[BSC_CTR_HANDOVER_FAILED].current,
+ net->bsc_ctrs->ctr[BSC_CTR_HANDOVER_ATTEMPTED].current,
+ net->bsc_ctrs->ctr[BSC_CTR_HANDOVER_NO_CHANNEL].current,
+ net->bsc_ctrs->ctr[BSC_CTR_HANDOVER_TIMEOUT].current,
+ net->bsc_ctrs->ctr[BSC_CTR_HANDOVER_COMPLETED].current,
+ net->bsc_ctrs->ctr[BSC_CTR_HANDOVER_FAILED].current,
VTY_NEWLINE);
vty_out(vty, "SMS MO : %lu submitted, %lu no receiver%s",
net->msc_ctrs->ctr[MSC_CTR_SMS_SUBMITTED].current,