pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/32382 )
(
5 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: dl_tbf: Set BandWidth timestamps to current time directly ......................................................................
dl_tbf: Set BandWidth timestamps to current time directly
Change-Id: I01654534aef5255c6d1c3ba0c553190a0319e8e1 --- M src/tbf_dl.cpp 1 file changed, 11 insertions(+), 5 deletions(-)
Approvals: fixeria: Looks good to me, approved Jenkins Builder: Verified
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp index 17b6a3a..cbf42a2 100644 --- a/src/tbf_dl.cpp +++ b/src/tbf_dl.cpp @@ -95,8 +95,8 @@ 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 @@ 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; }