pub fn free_percent() -> Result<Percent>
free as a share of total.
free
total
use sys_lib as sys; // Shed load before the out-of-memory killer does. if sys::mem::free_percent()?.value() < 5.0 { /* refuse new work */ }
As total.