From 834cbab97d096825d2f46e0cc9841adab3180997 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 23 Oct 2020 22:17:01 +0200 Subject: [PATCH] Move constructor gprs_rlcmac_dl_tbf::BandWidth to correct file Change-Id: I7587fd2ee97424020a099a8513f95544d6635f3d --- src/tbf.cpp | 10 ---------- src/tbf_dl.cpp | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/tbf.cpp b/src/tbf.cpp index ac84de20..90ee4cf6 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -1036,16 +1036,6 @@ struct gprs_rlcmac_ul_tbf *tbf_alloc_ul_tbf(struct gprs_rlcmac_bts *bts, GprsMs return tbf; } -gprs_rlcmac_dl_tbf::BandWidth::BandWidth() : - dl_bw_octets(0), - dl_throughput(0), - dl_loss_lost(0), - dl_loss_received(0) -{ - timespecclear(&dl_bw_tv); - timespecclear(&dl_loss_tv); -} - static int dl_tbf_dtor(struct gprs_rlcmac_dl_tbf *tbf) { tbf->~gprs_rlcmac_dl_tbf(); diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp index e6be3c32..fc03c0b8 100644 --- a/src/tbf_dl.cpp +++ b/src/tbf_dl.cpp @@ -75,6 +75,16 @@ static void llc_timer_cb(void *_tbf) tbf->request_dl_ack(); } +gprs_rlcmac_dl_tbf::BandWidth::BandWidth() : + dl_bw_octets(0), + dl_throughput(0), + dl_loss_lost(0), + dl_loss_received(0) +{ + timespecclear(&dl_bw_tv); + timespecclear(&dl_loss_tv); +} + gprs_rlcmac_dl_tbf::gprs_rlcmac_dl_tbf(BTS *bts_) : gprs_rlcmac_tbf(bts_, GPRS_RLCMAC_DL_TBF), m_tx_counter(0),