pespin submitted this change.

View Change



5 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Approvals: fixeria: Looks good to me, approved Jenkins Builder: Verified
dl_tbf: Set BandWidth timestamps to current time directly

Change-Id: I01654534aef5255c6d1c3ba0c553190a0319e8e1
---
M src/tbf_dl.cpp
1 file changed, 11 insertions(+), 5 deletions(-)

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;
}


To view, visit change 32382. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I01654534aef5255c6d1c3ba0c553190a0319e8e1
Gerrit-Change-Number: 32382
Gerrit-PatchSet: 6
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>
Gerrit-MessageType: merged