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

master
Francisco Paisana 3 years ago
parent 3119214124
commit 698eff29f4

@ -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 (ul_pending_bytes == 0 and last_sr_slot.valid()) {
// If unanswered SR is pending // If unanswered SR is pending
ul_pending_bytes = 512; ul_pending_bytes = 512;

Loading…
Cancel
Save