Skip to content

Commit

Permalink
修改clamp
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Dec 29, 2023
1 parent 3f381f6 commit fb70118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fas-rs-fw/src/scheduler/looper/policy_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl PolicyConfig {
let target_fps = buffer.target_fps.unwrap_or(10);
let target_fps = f64::from(target_fps);

let deviation = buffer.deviation.ceil().clamp(1.0, target_fps);
let deviation = buffer.deviation.ceil().clamp(1.0, 10.0);
let acc_dur = Duration::from_secs_f64(deviation);

let allow_frame = match mode {
Expand Down

0 comments on commit fb70118

Please sign in to comment.