sched,nr: avoid ul pending bytes of each UE becoming negative

This commit is contained in:
Francisco Paisana 2021-09-27 13:08:45 +02:00
parent 3119214124
commit 698eff29f4
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ void ue::new_slot(slot_point pdcch_slot)
}
}
}
ul_pending_bytes = std::max(0, ul_pending_bytes);
if (ul_pending_bytes == 0 and last_sr_slot.valid()) {
// If unanswered SR is pending
ul_pending_bytes = 512;