nr,sched: fix sched tbs acked metric computation

This commit is contained in:
Francisco 2021-10-12 12:18:45 +01:00 committed by Francisco Paisana
parent 510e9f47a7
commit ca7a3cf201
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ void sched_nr::dl_ack_info(uint16_t rnti, uint32_t cc, uint32_t pid, uint32_t tb
int tbs = ue_cc.harq_ent.dl_ack_info(pid, tb_idx, ack);
if (tbs >= 0) {
if (ack) {
ue_cc.metrics.tx_brate += tbs * 8;
ue_cc.metrics.tx_brate += tbs;
} else {
ue_cc.metrics.tx_errors++;
}