From fd62ac483e0e938afb30d58cfdd6cba69de32cc5 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 22 Nov 2022 17:00:04 +0100 Subject: [PATCH] paging: Rename stat t3113 -> paging:t3113 This way all paging related stats can be grouped (more will be added in follow-up commits). Related: SYS#6200 Change-Id: Iede1b6f68df468c7a3b3bf5fce7f68bb08b78832 --- include/osmocom/bsc/bts.h | 2 +- src/osmo-bsc/bts.c | 6 +++--- src/osmo-bsc/paging.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/osmocom/bsc/bts.h b/include/osmocom/bsc/bts.h index cc4db5aa3..e191fc55c 100644 --- a/include/osmocom/bsc/bts.h +++ b/include/osmocom/bsc/bts.h @@ -228,7 +228,7 @@ enum { BTS_STAT_TS_BORKEN, BTS_STAT_NUM_TRX_RSL_CONNECTED, BTS_STAT_NUM_TRX_TOTAL, - BTS_STAT_T3113, + BTS_STAT_PAGING_T3113, }; extern const struct osmo_stat_item_desc bts_stat_desc[]; diff --git a/src/osmo-bsc/bts.c b/src/osmo-bsc/bts.c index 95e3197f8..0bd5d4a25 100644 --- a/src/osmo-bsc/bts.c +++ b/src/osmo-bsc/bts.c @@ -1042,7 +1042,7 @@ void gsm_bts_stats_reset(struct gsm_bts *bts) osmo_stat_item_set(osmo_stat_item_group_get_item(bts->bts_statg, BTS_STAT_CHAN_SDCCH8_CBCH_TOTAL), 0); osmo_stat_item_set(osmo_stat_item_group_get_item(bts->bts_statg, BTS_STAT_CHAN_OSMO_DYN_USED), 0); osmo_stat_item_set(osmo_stat_item_group_get_item(bts->bts_statg, BTS_STAT_CHAN_OSMO_DYN_TOTAL), 0); - osmo_stat_item_set(osmo_stat_item_group_get_item(bts->bts_statg, BTS_STAT_T3113), 0); + osmo_stat_item_set(osmo_stat_item_group_get_item(bts->bts_statg, BTS_STAT_PAGING_T3113), 0); } const struct rate_ctr_desc bts_ctr_description[] = { @@ -1694,8 +1694,8 @@ const struct osmo_stat_item_desc bts_stat_desc[] = { { "num_trx:total", "Number of configured TRX in this BTS", "" }, - [BTS_STAT_T3113] = \ - { "t3113", + [BTS_STAT_PAGING_T3113] = \ + { "paging:t3113", "T3113 paging timer", "s", 60, 0 }, }; diff --git a/src/osmo-bsc/paging.c b/src/osmo-bsc/paging.c index 3909a7f9a..09b9ffc10 100644 --- a/src/osmo-bsc/paging.c +++ b/src/osmo-bsc/paging.c @@ -388,7 +388,7 @@ static unsigned int calculate_timer_3113(struct gsm_paging_request *req, unsigne "Paging request: T3113 expires in %u seconds (estimated %u)\n", to, estimated_to); ret: - osmo_stat_item_set(osmo_stat_item_group_get_item(bts->bts_statg, BTS_STAT_T3113), to); + osmo_stat_item_set(osmo_stat_item_group_get_item(bts->bts_statg, BTS_STAT_PAGING_T3113), to); return to; }