trying different stöff
This commit is contained in:
@@ -132,11 +132,7 @@ pub fn get_disk_utitlization() -> Result<(f64, f64, f64, f64), Box<dyn Error>> {
|
||||
}
|
||||
|
||||
pub fn _get_disk_temp_for_component(component: &Component) -> Option<f64> {
|
||||
if let Some(temp) = component.temperature() {
|
||||
Some(temp as f64)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
component.temperature().map(|temp| temp as f64)
|
||||
}
|
||||
|
||||
pub fn _get_disk_load_for_disk(disk: &Disk) -> Result<(f64, f64, f64, f64), Box<dyn Error>> {
|
||||
|
Reference in New Issue
Block a user