Skip to content

Commit

Permalink
Add missing frequency for global CPU on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Mar 16, 2023
1 parent dba372a commit b708696
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/freebsd/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ impl SystemExt for System {
self.system_info
.get_cpu_usage(&mut self.global_cpu, &mut self.cpus);
}
if refresh_kind.frequency() {
self.global_cpu.frequency = self.cpus.get(0).map(|cpu| cpu.frequency).unwrap_or(0);
}
}

fn refresh_components_list(&mut self) {
Expand Down

0 comments on commit b708696

Please sign in to comment.