parse_meminfo_memtotal_kb

Function parse_meminfo_memtotal_kb 

Source
fn parse_meminfo_memtotal_kb(meminfo: &str) -> Option<u64>
Expand description

Extract MemTotal (in kB) from /proc/meminfo content, or None. Pure so the parse - the only place a wrong line/unit would size every bare-VM budget wrong - is unit-tested without a live /proc.