Skip to content

Commit

Permalink
修复一处符号写反
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Dec 29, 2023
1 parent 9eb14fe commit 17f8c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fas-rs-fw/src/scheduler/looper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl<P: PerformanceController> Looper<P> {
let target_fps = self
.buffers
.values()
.filter(|b| b.last_update.elapsed() > Duration::from_secs(1))
.filter(|b| b.last_update.elapsed() < Duration::from_secs(1))
.filter_map(|b| b.target_fps)
.max();
let timeout = Duration::from_secs(10) / target_fps.unwrap_or(10);
Expand Down Expand Up @@ -96,7 +96,7 @@ impl<P: PerformanceController> Looper<P> {
continue;
}
};

self.buffer_update(&data);
self.retain_topapp(mode)?;
if !self.started {
Expand Down

0 comments on commit 17f8c45

Please sign in to comment.