diff --git a/lib/src/upper/pdcp_entity_lte.cc b/lib/src/upper/pdcp_entity_lte.cc index 82bc0e9ea..04cf8ca83 100644 --- a/lib/src/upper/pdcp_entity_lte.cc +++ b/lib/src/upper/pdcp_entity_lte.cc @@ -195,6 +195,10 @@ void pdcp_entity_lte::write_sdu(unique_byte_buffer_t sdu, int upper_sn) } // Pass PDU to lower layers + metrics_mutex.lock(); + metrics.num_tx_pdus++; + metrics.num_tx_pdu_bytes += sdu->N_bytes; + metrics_mutex.unlock(); rlc->write_sdu(lcid, std::move(sdu)); }