mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 17:30:34 +08:00
Allocator interface: getNumBlocks() --> getBlockCapacity()
This commit is contained in:
@@ -373,11 +373,11 @@ public:
|
||||
{
|
||||
assert(num_ifaces_ > 0 && num_ifaces_ <= uavcan::MaxCanIfaces);
|
||||
|
||||
const unsigned quota_per_iface = allocator_.getNumBlocks() / num_ifaces_;
|
||||
const unsigned quota_per_iface = allocator_.getBlockCapacity() / num_ifaces_;
|
||||
const unsigned quota_per_queue = quota_per_iface; // 2x overcommit
|
||||
|
||||
UAVCAN_TRACE("VirtualCanDriver", "Total blocks: %u, quota per queue: %u",
|
||||
unsigned(allocator_.getNumBlocks()), unsigned(quota_per_queue));
|
||||
unsigned(allocator_.getBlockCapacity()), unsigned(quota_per_queue));
|
||||
|
||||
for (unsigned i = 0; i < num_ifaces_; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user