Skip to content

Commit 59c34f9

Browse files
chore: bump sysinfo to 0.33.1 (#1453)
1 parent f9151a7 commit 59c34f9

File tree

9 files changed

+19
-32
lines changed

9 files changed

+19
-32
lines changed

Cargo.lock

Lines changed: 8 additions & 22 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
@@ -136,7 +136,7 @@ shlex = "1.3.0"
136136
similar = "2.7.0"
137137
spinners = "4.1.0"
138138
strum = { version = "0.27.1", features = ["derive"] }
139-
sysinfo = "0.32.0"
139+
sysinfo = "0.33.1"
140140
thiserror = "2.0.12"
141141
tempfile = "3.18.0"
142142
time = { version = "0.3.39", features = [

crates/fig_desktop/src/install.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ async fn launch_ibus(ctx: &Context) {
742742
use tokio::process::Command;
743743

744744
let system = tokio::task::block_in_place(|| {
745-
System::new_with_specifics(RefreshKind::new().with_processes(ProcessRefreshKind::new()))
745+
System::new_with_specifics(RefreshKind::nothing().with_processes(ProcessRefreshKind::nothing()))
746746
});
747747
let ibus_daemon = OsString::from("ibus-daemon");
748748
if system.processes_by_name(&ibus_daemon).next().is_none() {

crates/fig_desktop/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ async fn allow_multiple_running_check(
244244
}
245245

246246
let system = System::new_with_specifics(
247-
RefreshKind::new().with_processes(ProcessRefreshKind::new().with_user(sysinfo::UpdateKind::Always)),
247+
RefreshKind::nothing().with_processes(ProcessRefreshKind::nothing().with_user(sysinfo::UpdateKind::Always)),
248248
);
249249
let app_process_name = OsString::from(APP_PROCESS_NAME);
250250
let processes = system.processes_by_exact_name(&app_process_name);
@@ -299,7 +299,7 @@ async fn allow_multiple_running_check(
299299
use std::ffi::OsString;
300300

301301
let app_process_name = OsString::from(APP_PROCESS_NAME);
302-
let system = System::new_with_specifics(RefreshKind::new().with_processes(ProcessRefreshKind::new()));
302+
let system = System::new_with_specifics(RefreshKind::nothing().with_processes(ProcessRefreshKind::nothing()));
303303
let processes = system.processes_by_name(&app_process_name);
304304
let current_uid = nix::unistd::getuid().as_raw();
305305

crates/fig_diagnostic/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub struct SystemInfo {
103103
impl SystemInfo {
104104
fn new() -> SystemInfo {
105105
let system = sysinfo::System::new_with_specifics(
106-
RefreshKind::new()
106+
RefreshKind::nothing()
107107
.with_cpu(CpuRefreshKind::everything())
108108
.with_memory(MemoryRefreshKind::everything()),
109109
);

crates/q_cli/src/cli/doctor/checks/linux.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ impl DoctorCheck<LinuxContext> for IBusRunningCheck {
306306
RefreshKind,
307307
};
308308

309-
let system = sysinfo::System::new_with_specifics(RefreshKind::new().with_processes(ProcessRefreshKind::new()));
309+
let system =
310+
sysinfo::System::new_with_specifics(RefreshKind::nothing().with_processes(ProcessRefreshKind::nothing()));
310311
let ibus_daemon = OsString::from("ibus-daemon");
311312

312313
if system.processes_by_exact_name(&ibus_daemon).next().is_none() {

crates/q_cli/src/cli/internal/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ impl InternalSubcommand {
626626
use tokio::process::Command;
627627

628628
let system = tokio::task::block_in_place(|| {
629-
System::new_with_specifics(RefreshKind::new().with_processes(ProcessRefreshKind::new()))
629+
System::new_with_specifics(RefreshKind::nothing().with_processes(ProcessRefreshKind::nothing()))
630630
});
631631
let ibus_daemon = OsString::from("ibus-daemon");
632632
if system.processes_by_name(&ibus_daemon).next().is_none() {

crates/q_cli/src/util/desktop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub fn desktop_app_running() -> bool {
4949

5050
// Fallback to process name check
5151
let app_process_name = OsString::from(APP_PROCESS_NAME);
52-
let system = System::new_with_specifics(RefreshKind::new().with_processes(ProcessRefreshKind::new()));
52+
let system = System::new_with_specifics(RefreshKind::nothing().with_processes(ProcessRefreshKind::nothing()));
5353
let mut processes = system.processes_by_exact_name(&app_process_name);
5454
processes.next().is_some()
5555
}
@@ -83,7 +83,7 @@ pub fn desktop_app_running() -> bool {
8383
System,
8484
};
8585

86-
let s = System::new_with_specifics(RefreshKind::new().with_processes(ProcessRefreshKind::new()));
86+
let s = System::new_with_specifics(RefreshKind::nothing().with_processes(ProcessRefreshKind::nothing()));
8787
let app_process_name = OsString::from(APP_PROCESS_NAME);
8888
let mut processes = s.processes_by_exact_name(&app_process_name);
8989
processes.next().is_some()

crates/q_cli/src/util/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ mod tests {
346346
};
347347

348348
let app_process_name = OsString::from(APP_PROCESS_NAME);
349-
let system = System::new_with_specifics(RefreshKind::new().with_processes(ProcessRefreshKind::new()));
349+
let system = System::new_with_specifics(RefreshKind::nothing().with_processes(ProcessRefreshKind::nothing()));
350350
cfg_if! {
351351
if #[cfg(windows)] {
352352
let mut processes = system.processes_by_name(&app_process_name);

0 commit comments

Comments
 (0)