Skip to main content

load_average

Function load_average 

Source
pub fn load_average() -> Option<f64>
Expand description

The host’s 1-minute load average, from getloadavg(3); None where the platform has none or the call fails.

use majordomus_cli::bench::results::load_average;
if let Some(load) = load_average() {
    assert!(load >= 0.0 && load.is_finite());
}