MCPcopy Create free account
hub / github.com/NetSys/bess / AdjustWaterLevels

Method AdjustWaterLevels

core/modules/queue.cc:250–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void Queue::AdjustWaterLevels() {
251 high_water_ = static_cast<uint64_t>(size_ * kHighWaterRatio);
252 low_water_ = static_cast<uint64_t>(size_ * kLowWaterRatio);
253}
254
255CheckConstraintResult Queue::CheckModuleConstraints() const {
256 CheckConstraintResult status = CHECK_OK;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected