path: root/openbsc/src/gprs/gb_proxy_vty.c
diff options
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-04 11:19:56 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-04 11:37:40 +0200
commita7027a04ddef288844048a405cd11f8a3e7df877 (patch)
tree52d625f07ce1d6ee07b69374f4fe04c8ce33dd8a /openbsc/src/gprs/gb_proxy_vty.c
parentd4d36f22eed10b27e515e522bf10f4e9c90fba79 (diff)
gbproxy: Remove the global rate counter and place it in the config
Move the global data into the struct and use it. gbprox_reset will first free data and then re-initialize the structure. This code is used by the unit test. Done with Jacob
Diffstat (limited to 'openbsc/src/gprs/gb_proxy_vty.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gb_proxy_vty.c b/openbsc/src/gprs/gb_proxy_vty.c
index 2ca0c57d4..ee13e4cb7 100644
--- a/openbsc/src/gprs/gb_proxy_vty.c
+++ b/openbsc/src/gprs/gb_proxy_vty.c
@@ -341,7 +341,7 @@ DEFUN(show_gbproxy, show_gbproxy_cmd, "show gbproxy [stats]",
int show_stats = argc >= 1;
if (show_stats)
- vty_out_rate_ctr_group(vty, "", get_global_ctrg());
+ vty_out_rate_ctr_group(vty, "", gbcfg.ctrg);
llist_for_each_entry(peer, &gbcfg.bts_peers, list) {
gbprox_vty_print_peer(vty, peer);