Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ default-features = false
features = ["parsing", "assets", "yaml-load", "dump-load", "regex-onig"]

[dependencies.sysinfo]
version = "0.20.5"
git = "https://github.com/GuillaumeGomez/sysinfo"
commit = "d647acfbf216848a8237e1f9251b2c48860a547f"
# no default features to disable the use of threads
default-features = false
features = []
Expand Down
8 changes: 5 additions & 3 deletions src/utils/process.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::borrow::Cow;
use std::collections::{HashMap, HashSet};
use std::path::Path;
use sysinfo::{Pid, Process, ProcessExt, SystemExt};
use sysinfo::{Pid, Process, ProcessExt, ProcessRefreshKind, SystemExt};

use lazy_static::lazy_static;

Expand Down Expand Up @@ -347,7 +347,8 @@ impl ProcessInterface for ProcInfo {
std::process::id() as Pid
}
fn refresh_process(&mut self, pid: Pid) -> bool {
self.info.refresh_process(pid)
self.info
.refresh_process_specifics(pid, ProcessRefreshKind::new())
}
fn process(&self, pid: Pid) -> Option<&Self::Out> {
self.info.process(pid)
Expand All @@ -356,7 +357,8 @@ impl ProcessInterface for ProcInfo {
self.info.processes()
}
fn refresh_processes(&mut self) {
self.info.refresh_processes()
self.info
.refresh_processes_specifics(ProcessRefreshKind::new())
}
}

Expand Down