aboutsummaryrefslogtreecommitdiffstats
path: root/tests/alloc/AllocTest.cpp
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-07-01 12:27:30 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-07-07 10:03:29 +0200
commit9ae282372c9b3e10050244b8a1c9179122556175 (patch)
tree9059b0a272f9e46d48175bd79263adfe37e51805 /tests/alloc/AllocTest.cpp
parented46afda6f647e47702379abacf632e7dcc9ee5b (diff)
alloc: Set minimum slot capacity to 1
Currently the capacity of a PDCH slot is calculated as 32 - N_reserved for each direction. This can result in a capacity of 0 and even negative values. This commit forces the capacity of an usable slot to be at least zero under the assumption, that an overly reserved PDCH is still better than none. Sponsored-by: On-Waves ehf
Diffstat (limited to 'tests/alloc/AllocTest.cpp')
0 files changed, 0 insertions, 0 deletions