Clippy fixed. Fix openrc files
This commit is contained in:
parent
5698ab15d8
commit
0b388e2ae3
@ -153,8 +153,7 @@ pub fn load_config(config_path: &str) -> Result<Config, ConfigError> {
|
|||||||
return Err(ConfigError::FanSpeedTooLow {
|
return Err(ConfigError::FanSpeedTooLow {
|
||||||
value: matrix_point.speed,
|
value: matrix_point.speed,
|
||||||
index,
|
index,
|
||||||
}
|
});
|
||||||
.into());
|
|
||||||
}
|
}
|
||||||
if matrix_point.speed > 100f64 {
|
if matrix_point.speed > 100f64 {
|
||||||
log::error!(
|
log::error!(
|
||||||
@ -164,8 +163,7 @@ pub fn load_config(config_path: &str) -> Result<Config, ConfigError> {
|
|||||||
return Err(ConfigError::FanSpeedTooHigh {
|
return Err(ConfigError::FanSpeedTooHigh {
|
||||||
value: matrix_point.speed,
|
value: matrix_point.speed,
|
||||||
index,
|
index,
|
||||||
}
|
});
|
||||||
.into());
|
|
||||||
}
|
}
|
||||||
if let Some(last_point) = last_point {
|
if let Some(last_point) = last_point {
|
||||||
if matrix_point.speed < last_point.speed {
|
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,
|
current: matrix_point.speed,
|
||||||
last: last_point.speed,
|
last: last_point.speed,
|
||||||
index,
|
index,
|
||||||
}
|
});
|
||||||
.into());
|
|
||||||
}
|
}
|
||||||
if matrix_point.temp < last_point.temp {
|
if matrix_point.temp < last_point.temp {
|
||||||
log::error!(
|
log::error!(
|
||||||
@ -193,8 +190,7 @@ pub fn load_config(config_path: &str) -> Result<Config, ConfigError> {
|
|||||||
current: matrix_point.temp,
|
current: matrix_point.temp,
|
||||||
last: last_point.temp,
|
last: last_point.temp,
|
||||||
index,
|
index,
|
||||||
}
|
});
|
||||||
.into());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@ pidfile="/run/${SVCNAME}.pid"
|
|||||||
command="/usr/bin/amdfand"
|
command="/usr/bin/amdfand"
|
||||||
command_args="service"
|
command_args="service"
|
||||||
command_user="root"
|
command_user="root"
|
||||||
|
command_background=true
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need udev
|
need udev
|
||||||
|
@ -5,6 +5,7 @@ pidfile="/run/${SVCNAME}.pid"
|
|||||||
command="/usr/bin/amdfand log_file -s /var/log/amdmon.csv"
|
command="/usr/bin/amdfand log_file -s /var/log/amdmon.csv"
|
||||||
command_args="service"
|
command_args="service"
|
||||||
command_user="root"
|
command_user="root"
|
||||||
|
command_background=true
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need udev
|
need udev
|
||||||
|
@ -5,6 +5,7 @@ pidfile="/run/${SVCNAME}.pid"
|
|||||||
command="/usr/bin/amdvold"
|
command="/usr/bin/amdvold"
|
||||||
command_args="service"
|
command_args="service"
|
||||||
command_user="root"
|
command_user="root"
|
||||||
|
command_background=true
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need udev
|
need udev
|
||||||
|
Loading…
Reference in New Issue
Block a user