summaryrefslogtreecommitdiffstats
path: root/src/app/data_harvester/temperature/linux.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/data_harvester/temperature/linux.rs')
-rw-r--r--src/app/data_harvester/temperature/linux.rs18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/app/data_harvester/temperature/linux.rs b/src/app/data_harvester/temperature/linux.rs
index 72ca9eef..5b6fbbb0 100644
--- a/src/app/data_harvester/temperature/linux.rs
+++ b/src/app/data_harvester/temperature/linux.rs
@@ -9,10 +9,7 @@ use anyhow::Result;
use hashbrown::{HashMap, HashSet};
use super::{is_temp_filtered, TempHarvest, TemperatureType};
-use crate::app::{
- data_harvester::temperature::{convert_celsius_to_fahrenheit, convert_celsius_to_kelvin},
- Filter,
-};
+use crate::app::{data_harvester::temperature::convert_temp_unit, Filter};
const EMPTY_NAME: &str = "Unknown";
@@ -31,14 +28,6 @@ fn read_temp(path: &Path) -> Result<f32> {
/ 1_000.0)
}
-fn convert_temp_unit(temp: f32, temp_type: &TemperatureType) -> f32 {
- match temp_type {
- TemperatureType::Celsius => temp,
- TemperatureType::Kelvin => convert_celsius_to_kelvin(temp),
- TemperatureType::Fahrenheit => convert_celsius_to_fahrenheit(temp),
- }
-}
-
/// Get all candidates from hwmon and coretemp. It will also return the number of entries from hwmon.
fn get_hwmon_candidates() -> (HashSet<PathBuf>, usize) {
let mut dirs = HashSet::default();
@@ -359,11 +348,6 @@ pub fn get_temperature_data(
add_thermal_zone_temperatures(&mut results.temperatures, temp_type, filter);
}
- #[cfg(feature = "nvidia")]
- {
- super::nvidia::add_nvidia_data(&mut results.temperatures, temp_type, filter)?;
- }
-
Ok(Some(results.temperatures))
}