diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2020-05-05 17:15:21 +0300 |
---|---|---|
committer | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2020-05-05 20:38:16 +0300 |
commit | dab89af0700f1b3fe241fc0a131e294bf7e2d1bd (patch) | |
tree | b674e2ed22fbcb7ef60e09d3e3f6b1aa93052f46 | |
parent | eebbf2b1fc65a6b59f540185754b828e7fa596f8 (diff) |
vty: Prepend VTY output of counters for better visual separation.
Before this patch rate counters started right after trunk information
with no visual separation which was quite confusing. We're adding
a new line and a header to warn a user of the section change.
Change-Id: I3943def03ab821b05ac597f40bdfa4a3a71ddca3
-rw-r--r-- | src/libosmo-mgcp/mgcp_vty.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libosmo-mgcp/mgcp_vty.c b/src/libosmo-mgcp/mgcp_vty.c index 3b61c3019..fa175e154 100644 --- a/src/libosmo-mgcp/mgcp_vty.c +++ b/src/libosmo-mgcp/mgcp_vty.c @@ -262,6 +262,10 @@ static void dump_trunk(struct vty *vty, struct mgcp_trunk_config *cfg, int show_ vty_out(vty, "%s", VTY_NEWLINE); } + if (show_stats) { + vty_out(vty, "%s", VTY_NEWLINE); + vty_out(vty, "Rate counters:%s", VTY_NEWLINE); + } if (show_stats && cfg->mgcp_crcx_ctr_group) { vty_out(vty, " %s:%s", cfg->mgcp_crcx_ctr_group->desc->group_description, VTY_NEWLINE); vty_out_rate_ctr_group_fmt(vty, " %25n: %10c (%S/s %M/m %H/h %D/d) %d", cfg->mgcp_crcx_ctr_group); |