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

Function detect_system_memory

nodedb/src/event/slab_budget.rs:319–326  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317
318 #[test]
319 fn detect_system_memory() {
320 // On Linux, /proc/meminfo should exist and return > 0.
321 if cfg!(target_os = "linux") {
322 let mem = detect_system_memory_bytes();
323 assert!(mem.is_some(), "should detect memory on Linux");
324 assert!(mem.unwrap() > 0);
325 }
326 }
327}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected