Skip to content

Commit

Permalink
⬆️ Implement breaking changes for sysinfo crate
Browse files Browse the repository at this point in the history
  • Loading branch information
a-kenji committed Nov 19, 2024
1 parent 20d0a1d commit 794d87d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/plugin/resource_monitor/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ impl Plugin for CpuPlugin {
}

fn update_entries(&mut self) -> anyhow::Result<()> {
self.sysinfo.refresh_cpu();
self.sysinfo.refresh_cpu_all();
self.entries.clear();

let mut core_usages: String = format!(
"{}% – {} Cores:",
self.sysinfo.global_cpu_info().cpu_usage() as i32,
self.sysinfo.global_cpu_usage() as i32,
self.sysinfo.cpus().len()
);

Expand Down

0 comments on commit 794d87d

Please sign in to comment.