fix: include name in the hwmon snapshot

This commit is contained in:
Ilya Zlobintsev 2024-02-25 10:15:32 +02:00
parent 1e7d0873ff
commit c5ff5b3d01

View File

@ -69,7 +69,8 @@ const SNAPSHOT_FAN_CTRL_FILES: &[&str] = &[
"fan_minimum_pwm",
"fan_target_temperature",
];
const SNAPSHOT_HWMON_FILE_PREFIXES: &[&str] = &["fan", "pwm", "power", "temp", "freq", "in"];
const SNAPSHOT_HWMON_FILE_PREFIXES: &[&str] =
&["fan", "pwm", "power", "temp", "freq", "in", "name"];
#[derive(Clone)]
pub struct Handler {