Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Apr 22, 2024
1 parent 487233e commit 42cc13a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frame-analyzer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ impl Analyzer {
.extend(events.into_iter().map(std::borrow::ToOwned::to_owned));
}

let event = self.buffer.pop_front()?;
let event = self.buffer.pop_back()?;
let Token(pid) = event.token();
let pid = pid as Pid;
let frametime = self.map.get_mut(&pid)?.update().ok()?;
Expand Down Expand Up @@ -310,7 +310,7 @@ impl Analyzer {
.extend(events.into_iter().map(std::borrow::ToOwned::to_owned));
}

let event = self.buffer.pop_front()?;
let event = self.buffer.pop_back()?;
let Token(pid) = event.token();
let pid = pid as Pid;
let frametime = self.map.get_mut(&pid)?.update().ok()?;
Expand Down

0 comments on commit 42cc13a

Please sign in to comment.