Skip to main content

parse_disk_df

Function parse_disk_df 

Source
pub fn parse_disk_df(output: &str) -> Option<f64>
Expand description

Parse disk usage of / from df -k / output.

Handles Linux format (Use% column) and macOS format (Capacity column). Returns the numeric percentage as f64.