From 76346079e8e7ee86121bde83b2338f06cd4f7ead Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 31 Jan 2021 11:54:02 +0100 Subject: ns2: Introduce a per-bind stat_item group with backlog length The backlog length indicates the instantaneous length of the backlog. Change-Id: I1c55b4619b1221d7e607ace58649323407faf86b --- src/gb/gprs_ns2_vty.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gb/gprs_ns2_vty.c') diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c index c2b9bd9a..5d0f5c05 100644 --- a/src/gb/gprs_ns2_vty.c +++ b/src/gb/gprs_ns2_vty.c @@ -1374,6 +1374,10 @@ static void dump_bind(struct vty *vty, const struct gprs_ns2_vc_bind *bind, bool { if (bind->dump_vty) bind->dump_vty(bind, vty, stats); + + if (stats) { + vty_out_stat_item_group(vty, " ", bind->statg); + } } static void dump_ns_bind(struct vty *vty, const struct gprs_ns2_inst *nsi, bool stats) -- cgit v1.2.3