Skip to content

Commit ce8a3ca

Browse files
committed
Merge branch 'next' into agpl_next
2 parents 6c559ad + b15eefb commit ce8a3ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

srsgnb/src/stack/mac/sched_nr_ue.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ void ue::new_slot(slot_point pdcch_slot)
237237
// Discount UL HARQ pending bytes to BSR
238238
for (uint32_t pid = 0; pid < cc->harq_ent.nof_ul_harqs(); ++pid) {
239239
if (not cc->harq_ent.ul_harq(pid).empty()) {
240-
common_ctxt.pending_ul_bytes -= std::min(cc->harq_ent.ul_harq(pid).tbs(), common_ctxt.pending_ul_bytes);
240+
common_ctxt.pending_ul_bytes -= std::min(cc->harq_ent.ul_harq(pid).tbs() / 8, common_ctxt.pending_ul_bytes);
241241
if (last_sr_slot.valid() and cc->harq_ent.ul_harq(pid).harq_slot_tx() > last_sr_slot) {
242242
last_sr_slot.clear();
243243
}

0 commit comments

Comments
 (0)