gprs_ms_storage: Use bts_stat_item_inc/dec APIs
Change-Id: I2957513c35a1a075440d82b0f7f2c767c69ea9cc
This commit is contained in:
parent
c7802d9fc1
commit
f3561b59e4
|
@ -28,7 +28,7 @@ extern "C" {
|
|||
static void ms_storage_ms_idle_cb(struct GprsMs *ms)
|
||||
{
|
||||
llist_del(&ms->list);
|
||||
bts_stat_item_add(ms->bts, STAT_MS_PRESENT, -1);
|
||||
bts_stat_item_dec(ms->bts, STAT_MS_PRESENT);
|
||||
if (ms_is_idle(ms))
|
||||
talloc_free(ms);
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ GprsMs *GprsMsStorage::create_ms()
|
|||
ms_set_callback(ms, &ms_storage_ms_cb);
|
||||
llist_add(&ms->list, &m_list);
|
||||
if (m_bts)
|
||||
bts_stat_item_add(m_bts, STAT_MS_PRESENT, 1);
|
||||
bts_stat_item_inc(m_bts, STAT_MS_PRESENT);
|
||||
|
||||
return ms;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue