diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-12 16:01:56 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-22 10:39:06 +0200 |
commit | 04a108617ab904d7614966dfa9e4602bd1d4fae1 (patch) | |
tree | b8c0aa26d7cf8368d75c1c573043fb68fa3bf591 /src/pcu_vty_functions.cpp | |
parent | e1d2b3568afe914d5b9c77bafd48be5b35e2d1d4 (diff) |
ms: Store the NACK rate in the MS object
Currently the NACK/unconfirmed ratio is already passed to the
corresponding MS object, but the value is not being stored there.
This commit adds a member and a getter method and include the values
into the output of the 'show ms' command.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/pcu_vty_functions.cpp')
-rw-r--r-- | src/pcu_vty_functions.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp index 4f54e8e2..c8f81988 100644 --- a/src/pcu_vty_functions.cpp +++ b/src/pcu_vty_functions.cpp @@ -82,6 +82,9 @@ static int show_ms(struct vty *vty, GprsMs *ms) vty_out(vty, " Burst timing offset: %d/4 bit%s", ms->l1_meas()->bto, VTY_NEWLINE); if (ms->l1_meas()->have_ms_rx_qual) + vty_out(vty, " Downlink NACK rate: %d %%%s", + ms->nack_rate_dl(), VTY_NEWLINE); + if (ms->l1_meas()->have_ms_rx_qual) vty_out(vty, " MS RX quality: %d %%%s", ms->l1_meas()->ms_rx_qual, VTY_NEWLINE); if (ms->l1_meas()->have_ms_c_value) |