Skip to content

Commit

Permalink
Update sysinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
paberr committed Nov 30, 2023
1 parent 7a59d83 commit d80215e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,15 +471,15 @@ pub fn read_keys(
pub fn collect_processor_data() -> Result<Vec<ProcessorData>> {
cfg_if::cfg_if! {
if #[cfg(not(target_arch = "aarch64"))] {
use sysinfo::{ProcessorExt, System, SystemExt};
use sysinfo::{CpuExt, System, SystemExt};
let s = System::new();
let processors = s
.get_processors()
.cpus()
.iter()
.map(|p| ProcessorData {
name: p.get_name().to_string(),
brand: p.get_brand().to_string(),
frequency: p.get_frequency().to_string(),
name: p.name().to_string(),
brand: p.brand().to_string(),
frequency: p.frequency().to_string(),
})
.collect();
Ok(processors)
Expand Down

0 comments on commit d80215e

Please sign in to comment.