mirror of
https://github.com/RGBCube/superfreq
synced 2025-07-27 17:07:44 +00:00
engine: error on negative values
This commit is contained in:
parent
9db1a028bf
commit
ed3ba94f74
1 changed files with 1 additions and 0 deletions
|
@ -461,6 +461,7 @@ fn manage_auto_turbo(
|
|||
fn validate_turbo_auto_settings(settings: &TurboAutoSettings) -> Result<(), EngineError> {
|
||||
if settings.load_threshold_high <= settings.load_threshold_low
|
||||
|| settings.load_threshold_high > 100.0
|
||||
|| settings.load_threshold_high < 0.0
|
||||
|| settings.load_threshold_low < 0.0
|
||||
|| settings.load_threshold_low > 100.0
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue