Skip to content

Commit f3fefb7

Browse files
committed
feat(run): update sysinfo crate
This will add more ARM vendor IDs
1 parent 958c16e commit f3fefb7

3 files changed

Lines changed: 82 additions & 42 deletions

File tree

Cargo.lock

Lines changed: 79 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ git2 = "0.18.3"
4242
nestify = "0.3.3"
4343
gql_client = { git = "https://github.com/CodSpeedHQ/gql-client-rs" }
4444
serde_yaml = "0.9.34"
45-
sysinfo = { version = "0.30.12", features = ["serde"] }
45+
sysinfo = { version = "0.33.1", features = ["serde"] }
4646
indicatif = "0.17.8"
4747
console = "0.15.8"
4848
async-trait = "0.1.82"

src/run/check_system.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ impl SystemInfo {
5656
pub fn new() -> Result<Self> {
5757
let os = System::distribution_id();
5858
let os_version = System::os_version().ok_or(anyhow!("Failed to get OS version"))?;
59-
let arch = System::cpu_arch().ok_or(anyhow!("Failed to get CPU architecture"))?;
59+
let arch = System::cpu_arch();
6060
let user = get_user()?;
6161
let host = System::host_name().ok_or(anyhow!("Failed to get host name"))?;
6262

6363
let s = System::new_with_specifics(
64-
RefreshKind::new()
64+
RefreshKind::nothing()
6565
.with_cpu(CpuRefreshKind::everything())
6666
.with_memory(MemoryRefreshKind::everything()),
6767
);

0 commit comments

Comments
 (0)