MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / utilization

Method utilization

nodedb/src/bridge/slab.rs:132–134  ·  view source on GitHub ↗

Pool utilization ratio (0.0 = empty, 1.0 = full).

(&self)

Source from the content-addressed store, hash-verified

130
131 /// Pool utilization ratio (0.0 = empty, 1.0 = full).
132 pub fn utilization(&self) -> f32 {
133 1.0 - (self.available() as f32 / self.pool_size as f32)
134 }
135}
136
137/// Lock-free return queue for cross-plane slab recycling.

Callers 4

flush_wfqMethod · 0.45
dispatchMethod · 0.45
dispatch_to_coreMethod · 0.45
max_utilizationMethod · 0.45

Calls 1

availableMethod · 0.45

Tested by

no test coverage detected