diff --git a/crates/nu_plugin_ps/src/ps.rs b/crates/nu_plugin_ps/src/ps.rs index d710de2537..d487de8e80 100644 --- a/crates/nu_plugin_ps/src/ps.rs +++ b/crates/nu_plugin_ps/src/ps.rs @@ -15,15 +15,12 @@ impl Ps { pub async fn ps(tag: Tag, long: bool) -> Result, ShellError> { let mut sys = System::new_all(); sys.refresh_all(); - let duration = std::time::Duration::from_millis(500); - std::thread::sleep(duration); let mut output = vec![]; let result: Vec<_> = sys.get_processes().iter().map(|x| *x.0).collect(); for pid in result.into_iter() { - sys.refresh_process(pid); if let Some(result) = sys.get_process(pid) { let mut dict = TaggedDictBuilder::new(&tag); dict.insert_untagged("pid", UntaggedValue::int(pid));