diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-04-19 20:24:25 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-04-21 14:36:28 +0200 |
commit | 8456a3642b46a6a541b65ece5858c2d4498bede3 (patch) | |
tree | 6bc702d2d4cb5c799763aa9fbab4ec2b60b614f7 | |
parent | eae9147424625fca68fb33cdc4d81899a148f939 (diff) |
dl_tbf: Set BandWidth timestamps to current time directly
Change-Id: I01654534aef5255c6d1c3ba0c553190a0319e8e1
-rw-r--r-- | src/tbf_dl.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp index 17b6a3a0..cbf42a2d 100644 --- a/src/tbf_dl.cpp +++ b/src/tbf_dl.cpp @@ -95,8 +95,8 @@ gprs_rlcmac_dl_tbf::BandWidth::BandWidth() : dl_loss_lost(0), dl_loss_received(0) { - timespecclear(&dl_bw_tv); - timespecclear(&dl_loss_tv); + osmo_clock_gettime(CLOCK_MONOTONIC, &dl_bw_tv); + osmo_clock_gettime(CLOCK_MONOTONIC, &dl_loss_tv); } static int dl_tbf_dtor(struct gprs_rlcmac_dl_tbf *tbf) @@ -154,9 +154,6 @@ struct gprs_rlcmac_dl_tbf *dl_tbf_alloc(struct gprs_rlcmac_bts *bts, struct Gprs llist_add(tbf_trx_list((struct gprs_rlcmac_tbf *)tbf), &tbf->trx->dl_tbfs); bts_do_rate_ctr_inc(tbf->bts, CTR_TBF_DL_ALLOCATED); - osmo_clock_gettime(CLOCK_MONOTONIC, &tbf->m_bw.dl_bw_tv); - osmo_clock_gettime(CLOCK_MONOTONIC, &tbf->m_bw.dl_loss_tv); - return tbf; } |