fixed gpu detection - bc unknown lib
This commit is contained in:
@@ -131,7 +131,7 @@ pub fn get_disk_utitlization() -> Result<(f64, f64, f64, f64), Box<dyn Error>> {
|
||||
)) // Disk-Temp bleibt 0.0 ohne spezielle Hardware
|
||||
}
|
||||
|
||||
pub fn get_disk_temp_for_component(component: &Component) -> Option<f64> {
|
||||
pub fn _get_disk_temp_for_component(component: &Component) -> Option<f64> {
|
||||
if let Some(temp) = component.temperature() {
|
||||
Some(temp as f64)
|
||||
} else {
|
||||
@@ -139,7 +139,7 @@ pub fn get_disk_temp_for_component(component: &Component) -> Option<f64> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_disk_load_for_disk(disk: &Disk) -> Result<(f64, f64, f64, f64), Box<dyn Error>> {
|
||||
pub fn _get_disk_load_for_disk(disk: &Disk) -> Result<(f64, f64, f64, f64), Box<dyn Error>> {
|
||||
let usage: DiskUsage = disk.usage();
|
||||
|
||||
// Assuming DiskUsage has these methods:
|
||||
|
Reference in New Issue
Block a user