Struct sysinfo::LoadAvg [−][src]
Expand description
A struct representing system load average value.
It is returned by SystemExt::load_average
.
use sysinfo::{System, SystemExt};
let s = System::new_all();
let load_avg = s.load_average();
println!(
"one minute: {}%, five minutes: {}%, fifteen minutes: {}%",
load_avg.one,
load_avg.five,
load_avg.fifteen,
);
Fields
one: f64
Average load within one minute.
five: f64
Average load within five minutes.
fifteen: f64
Average load within fifteen minutes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LoadAvg
impl UnwindSafe for LoadAvg
Blanket Implementations
Mutably borrows from an owned value. Read more