pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-pcu/+/32382 )


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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/82/32382/1

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 https://gerrit.osmocom.org/c/osmo-pcu/+/32382
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I01654534aef5255c6d1c3ba0c553190a0319e8e1
Gerrit-Change-Number: 32382
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to