diff options
Diffstat (limited to 'src/app/data_harvester/temperature/sysinfo.rs')
-rw-r--r-- | src/app/data_harvester/temperature/sysinfo.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app/data_harvester/temperature/sysinfo.rs b/src/app/data_harvester/temperature/sysinfo.rs index cc415164..4e28efa7 100644 --- a/src/app/data_harvester/temperature/sysinfo.rs +++ b/src/app/data_harvester/temperature/sysinfo.rs @@ -19,7 +19,7 @@ pub fn get_temperature_data( if is_temp_filtered(filter, &name) { temperature_vec.push(TempHarvest { name, - temperature: temp_type.convert_temp_unit(component.temperature()), + temperature: Some(temp_type.convert_temp_unit(component.temperature())), }); } } @@ -36,11 +36,11 @@ pub fn get_temperature_data( if let Some(temp) = temp.as_temperature() { temperature_vec.push(TempHarvest { name, - temperature: match temp_type { + temperature: Some(match temp_type { TemperatureType::Celsius => temp.celsius(), TemperatureType::Kelvin => temp.kelvin(), TemperatureType::Fahrenheit => temp.fahrenheit(), - }, + }), }); } } |