diff --git a/Cargo.lock b/Cargo.lock index 9704b52301..8aa85923a7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2896,9 +2896,9 @@ dependencies = [ [[package]] name = "sysinfo" -version = "0.20.5" +version = "0.21.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e223c65cd36b485a34c2ce6e38efa40777d31c4166d9076030c74cdcf971679f" +checksum = "8f88d66f3341b688163d3585037954ff276cf24a234d015b30025318a3e3449a" dependencies = [ "cfg-if", "core-foundation-sys", diff --git a/crates/nu-command/Cargo.toml b/crates/nu-command/Cargo.toml index b47f9c8fe5..166895d068 100644 --- a/crates/nu-command/Cargo.toml +++ b/crates/nu-command/Cargo.toml @@ -23,7 +23,7 @@ csv = "1.1.3" glob = "0.3.0" Inflector = "0.11" thiserror = "1.0.29" -sysinfo = "0.20.4" +sysinfo = "0.21.2" chrono = { version = "0.4.19", features = ["serde"] } chrono-humanize = "0.2.1" chrono-tz = "0.6.0" diff --git a/crates/nu-command/src/system/ps.rs b/crates/nu-command/src/system/ps.rs index ed5d4a6e5d..0d51089aaf 100644 --- a/crates/nu-command/src/system/ps.rs +++ b/crates/nu-command/src/system/ps.rs @@ -54,11 +54,15 @@ fn run_ps(engine_state: &EngineState, call: &Call) -> Result = sys.processes().iter().map(|x| *x.0).collect(); for pid in result { + sys.refresh_process(pid); if let Some(result) = sys.process(pid) { let mut cols = vec![]; let mut vals = vec![];