Function sys_metrics::memory::has_swap [−][src]
pub fn has_swap() -> Result<bool, Error>
Expand description
Determine if the system uses Swap.
Read /proc/swaps and count the number of lines, if more than 1 then swap is enabled.