pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/32376 )
Change subject: tbf: Store initial timestamp during constructor ......................................................................
tbf: Store initial timestamp during constructor
Like already done for other timestamps. This helps in simplifying the setup() call.
Change-Id: Ia0c2d0f5456b211169fb6c71f5f3c2e2b8760a28 --- M src/tbf.cpp 1 file changed, 14 insertions(+), 3 deletions(-)
Approvals: Jenkins Builder: Verified osmith: Looks good to me, but someone else must approve fixeria: Looks good to me, approved
diff --git a/src/tbf.cpp b/src/tbf.cpp index e972bd0..797a95d 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -127,6 +127,8 @@ m_name_buf[0] = '\0';
m_created_ts = time(NULL); + /* set timestamp */ + osmo_clock_gettime(CLOCK_MONOTONIC, &meas.rssi_tv); }
@@ -586,9 +588,6 @@ /* assign initial control ts */ tbf_assign_control_ts(this);
- /* set timestamp */ - osmo_clock_gettime(CLOCK_MONOTONIC, &meas.rssi_tv); - LOGPTBF(this, LOGL_INFO, "Allocated: trx = %d, ul_slots = %02x, dl_slots = %02x\n", this->trx->trx_no, ul_slots(), dl_slots());