Clippy fixed. Fix openrc files

This commit is contained in:
Adrian Woźniak 2021-12-07 16:00:31 +01:00
parent 5698ab15d8
commit 0b388e2ae3
No known key found for this signature in database
GPG Key ID: 0012845A89C7352B
4 changed files with 7 additions and 8 deletions

View File

@ -153,8 +153,7 @@ pub fn load_config(config_path: &str) -> Result<Config, ConfigError> {
return Err(ConfigError::FanSpeedTooLow {
value: matrix_point.speed,
index,
}
.into());
});
}
if matrix_point.speed > 100f64 {
log::error!(
@ -164,8 +163,7 @@ pub fn load_config(config_path: &str) -> Result<Config, ConfigError> {
return Err(ConfigError::FanSpeedTooHigh {
value: matrix_point.speed,
index,
}
.into());
});
}
if let Some(last_point) = last_point {
if matrix_point.speed < last_point.speed {
@ -179,8 +177,7 @@ pub fn load_config(config_path: &str) -> Result<Config, ConfigError> {
current: matrix_point.speed,
last: last_point.speed,
index,
}
.into());
});
}
if matrix_point.temp < last_point.temp {
log::error!(
@ -193,8 +190,7 @@ pub fn load_config(config_path: &str) -> Result<Config, ConfigError> {
current: matrix_point.temp,
last: last_point.temp,
index,
}
.into());
});
}
}

View File

@ -5,6 +5,7 @@ pidfile="/run/${SVCNAME}.pid"
command="/usr/bin/amdfand"
command_args="service"
command_user="root"
command_background=true
depend() {
need udev

View File

@ -5,6 +5,7 @@ pidfile="/run/${SVCNAME}.pid"
command="/usr/bin/amdfand log_file -s /var/log/amdmon.csv"
command_args="service"
command_user="root"
command_background=true
depend() {
need udev

View File

@ -5,6 +5,7 @@ pidfile="/run/${SVCNAME}.pid"
command="/usr/bin/amdvold"
command_args="service"
command_user="root"
command_background=true
depend() {
need udev