From 83a49311cd7a2177733f2c895d93f2aea7b533bc Mon Sep 17 00:00:00 2001 From: shadow3aaa Date: Fri, 6 Dec 2024 09:55:54 +0800 Subject: [PATCH] build(deps): bump sysinfo from 0.32.1 to 0.33.0 --- Cargo.lock | 18 ++++++++++++++++-- Cargo.toml | 2 +- src/cpu_common/cpu_info.rs | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b303554..49282ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -446,7 +446,7 @@ dependencies = [ "serde", "serde_json", "sys-mount", - "sysinfo", + "sysinfo 0.33.0", "thiserror 2.0.4", "toml", "vergen", @@ -1193,6 +1193,20 @@ dependencies = [ "windows", ] +[[package]] +name = "sysinfo" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "948512566b1895f93b1592c7574baeb2de842f224f2aab158799ecadb8ebbb46" +dependencies = [ + "core-foundation-sys", + "libc", + "memchr", + "ntapi", + "rayon", + "windows", +] + [[package]] name = "thiserror" version = "1.0.69" @@ -1355,7 +1369,7 @@ dependencies = [ "regex", "rustc_version 0.4.1", "rustversion", - "sysinfo", + "sysinfo 0.32.1", "time", "vergen-lib", ] diff --git a/Cargo.toml b/Cargo.toml index 96191f1..ca10c48 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ mlua = { version = "0.10.2", features = ["luajit", "vendored", "error-send"] } frame-analyzer = "0.3.3" dumpsys-rs = { git = "https://github.com/shadow3aaa/dumpsys-rs" } mimalloc = "0.1.43" -sysinfo = "0.32.1" +sysinfo = "0.33.0" [build-dependencies] anyhow = "1.0.94" diff --git a/src/cpu_common/cpu_info.rs b/src/cpu_common/cpu_info.rs index 3e3a574..3185e8d 100644 --- a/src/cpu_common/cpu_info.rs +++ b/src/cpu_common/cpu_info.rs @@ -69,7 +69,7 @@ impl Info { freqs.sort_unstable(); let sys = System::new_with_specifics( - RefreshKind::new().with_cpu(CpuRefreshKind::new().with_cpu_usage()), + RefreshKind::nothing().with_cpu(CpuRefreshKind::nothing().with_cpu_usage()), ); Ok(Self {