Skip to content

Commit ed3ba94

Browse files
committed
engine: error on negative values
1 parent 9db1a02 commit ed3ba94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/engine.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ fn manage_auto_turbo(
461461
fn validate_turbo_auto_settings(settings: &TurboAutoSettings) -> Result<(), EngineError> {
462462
if settings.load_threshold_high <= settings.load_threshold_low
463463
|| settings.load_threshold_high > 100.0
464+
|| settings.load_threshold_high < 0.0
464465
|| settings.load_threshold_low < 0.0
465466
|| settings.load_threshold_low > 100.0
466467
{

0 commit comments

Comments
 (0)