From dab89af0700f1b3fe241fc0a131e294bf7e2d1bd Mon Sep 17 00:00:00 2001 From: Alexander Chemeris Date: Tue, 5 May 2020 17:15:21 +0300 Subject: [PATCH] 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 --- src/libosmo-mgcp/mgcp_vty.c | 4 ++++ 1 file changed, 4 insertions(+) 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);