Skip to content

Commit

Permalink
Revert into changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarler committed Mar 22, 2024
1 parent c857d7d commit 1f547f1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/profiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1231,10 +1231,7 @@ impl Profiler<'_> {
let mut prog_fds = Vec::new();
for i in 0..num_cpus::get() {
let perf_fd = unsafe {
setup_perf_event(
<usize as Into<T>>::into(i).unwrap(),
self.sample_freq.try_into().unwrap(),
)
setup_perf_event(i.try_into().unwrap(), self.sample_freq.try_into().unwrap())
}
.expect("setup perf event");
prog_fds.push(perf_fd);
Expand Down

0 comments on commit 1f547f1

Please sign in to comment.