gprs_ms_storage: Use bts_stat_item_inc/dec APIs

Change-Id: I2957513c35a1a075440d82b0f7f2c767c69ea9cc
changes/73/28073/1
Pau Espin 7 months ago
parent c7802d9fc1
commit f3561b59e4
  1. 4
      src/gprs_ms_storage.cpp

@ -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…
Cancel
Save