diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-19 16:20:28 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-19 16:20:28 +0800 |
commit | 7cb6867ea3fa61d738c7878b329c84e73949be3f (patch) | |
tree | 04a8285fc723e6c56aad5703997a279086457114 /openbsc/src/vty_interface.c | |
parent | d8138c43a1a8fc85f2783b442df7374f18a4ea36 (diff) |
[vty] Count pending paging requests for the vty
Implement a method to count the number of pending paging requests
per bts and print it on the VTY. This helps to see how big the
backlog of requests is for a given BTS.
Diffstat (limited to 'openbsc/src/vty_interface.c')
-rw-r--r-- | openbsc/src/vty_interface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c index 775ef1042..37126105a 100644 --- a/openbsc/src/vty_interface.c +++ b/openbsc/src/vty_interface.c @@ -40,6 +40,7 @@ #include <openbsc/telnet_interface.h> #include <openbsc/vty.h> #include <openbsc/ipaccess.h> +#include <openbsc/paging.h> static struct gsm_network *gsmnet; @@ -196,7 +197,8 @@ static void bts_dump_vty(struct vty *vty, struct gsm_bts *bts) net_dump_nmstate(vty, &bts->nm_state); vty_out(vty, " Site Mgr NM State: "); net_dump_nmstate(vty, &bts->site_mgr.nm_state); - vty_out(vty, " Paging: FIXME pending requests, %u free slots%s", + vty_out(vty, " Paging: %u pending requests, %u free slots%s", + paging_pending_requests_nr(bts), bts->paging.available_slots, VTY_NEWLINE); if (!is_ipaccess_bts(bts)) { vty_out(vty, " E1 Signalling Link:%s", VTY_NEWLINE); |