Skip to main content

free_fraction

Function free_fraction 

Source
pub fn free_fraction(path: &Path) -> Result<f64>
Expand description

How much of the filesystem holding path is still free, as a fraction of its total size. The fraction half of free, for the callers that report it rather than act on it: /api/v1/stats, the TUI header and the operator’s scaling signal all want a number an operator can read at a glance.