Skip to content

Commit 69b24ff

Browse files
committed
Bump sysinfo 0.32 -> 0.33
1 parent 7382fc0 commit 69b24ff

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Cargo.lock

Lines changed: 2 additions & 2 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
@@ -12,7 +12,7 @@ serde = { version = "1.0", features = ["derive"] }
1212
serde_json = "1.0"
1313
snafu = "0.8"
1414
stackable-operator = { git = "https://github.com/stackabletech/operator-rs", tag = "stackable-operator-0.86.0" }
15-
sysinfo = { version = "0.32", features = ["serde"] }
15+
sysinfo = { version = "0.33", features = ["serde"] }
1616
tracing = "0.1"
1717

1818
[build-dependencies]

src/system_information/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub struct OperatingSystem {
77
pub kernel_version: Option<String>,
88
pub version: Option<String>,
99
pub host_name: Option<String>,
10-
pub cpu_arch: Option<String>,
10+
pub cpu_arch: String,
1111
}
1212

1313
impl OperatingSystem {

src/system_information/resources.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ impl Resources {
2727
// but should help keep each log statement local to where that info is collected.
2828

2929
sys.refresh_specifics(
30-
RefreshKind::new()
31-
.with_cpu(CpuRefreshKind::new().with_cpu_usage())
30+
RefreshKind::nothing()
31+
.with_cpu(CpuRefreshKind::nothing().with_cpu_usage())
3232
.with_memory(MemoryRefreshKind::everything()),
3333
);
3434

src/system_information/user.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl User {
3030
sys.refresh_processes_specifics(
3131
sysinfo::ProcessesToUpdate::Some(&[pid]),
3232
false,
33-
ProcessRefreshKind::new().with_user(UpdateKind::OnlyIfNotSet),
33+
ProcessRefreshKind::nothing().with_user(UpdateKind::OnlyIfNotSet),
3434
);
3535
Ok(())
3636
}

0 commit comments

Comments
 (0)