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

Method global_pressure

nodedb-mem/src/governor.rs:429–431  ·  view source on GitHub ↗

Current global pressure level.

(&self)

Source from the content-addressed store, hash-verified

427
428 /// Current global pressure level.
429 pub fn global_pressure(&self) -> PressureLevel {
430 self.thresholds.level_for(self.global_utilization_percent())
431 }
432
433 /// Worst-case (highest) pressure level across every engine that has a
434 /// configured budget. Cheap: iterates the in-memory budget map and

Callers

nothing calls this directly

Calls 2

level_forMethod · 0.80

Tested by

no test coverage detected