Skip to content

Commit

Permalink
Remove usage of too recent feature
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 2, 2024
1 parent 8126e28 commit 4c61617
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/unix/apple/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ impl CpusWrapper {
pub(crate) fn refresh(&mut self, refresh_kind: CpuRefreshKind, port: mach_port_t) {
let need_cpu_usage_update = self
.last_update
.is_some_and(|last_update| last_update.elapsed() > crate::MINIMUM_CPU_UPDATE_INTERVAL);
.map(|last_update| last_update.elapsed() > crate::MINIMUM_CPU_UPDATE_INTERVAL)
.unwrap_or(false);

let cpus = &mut self.cpus;
if cpus.is_empty() {
Expand Down

0 comments on commit 4c61617

Please sign in to comment.