Fix hwmon measurement names

This commit is contained in:
2022-11-22 11:59:00 -08:00
parent 116f9b1cec
commit c7ec9f0dfb
2 changed files with 3 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ pub struct HwmonSensorConfig {
pub struct HwmonConfig {
pub enabled: bool,
pub interval: u64,
pub measurement_prefix: String,
pub measurement: String,
pub sensors: Map<String, HwmonSensorConfig>,
}
@@ -79,7 +79,7 @@ impl Default for HwmonConfig {
HwmonConfig {
enabled: false,
interval: 60,
measurement_prefix: "hwmon.".into(),
measurement: "hwmon".into(),
sensors: map! {},
}
}