summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vty/stats_vty.c1
-rw-r--r--src/vty/utils.c3
2 files changed, 1 insertions, 3 deletions
diff --git a/src/vty/stats_vty.c b/src/vty/stats_vty.c
index 5ded7a44..62153f3c 100644
--- a/src/vty/stats_vty.c
+++ b/src/vty/stats_vty.c
@@ -533,6 +533,7 @@ DEFUN(show_stats_asciidoc_table,
static int rate_ctr_group_handler(struct rate_ctr_group *ctrg, void *sctx_)
{
struct vty *vty = sctx_;
+ vty_out(vty, "%s:%s", ctrg->desc->group_description, VTY_NEWLINE);
vty_out_rate_ctr_group_fmt(vty, "%25n: %10c (%S/s %M/m %H/h %D/d) %d", ctrg);
return 0;
}
diff --git a/src/vty/utils.c b/src/vty/utils.c
index 0d663c6e..0358d9bd 100644
--- a/src/vty/utils.c
+++ b/src/vty/utils.c
@@ -214,9 +214,6 @@ void vty_out_rate_ctr_group_fmt(struct vty *vty, const char *fmt,
struct rate_ctr_group *ctrg)
{
struct vty_out_context vctx = {vty, fmt};
-
- vty_out(vty, "%s:%s", ctrg->desc->group_description, VTY_NEWLINE);
-
rate_ctr_for_each_counter(ctrg, rate_ctr_handler_fmt, &vctx);
}