diff --git a/src/commands/ps.rs b/src/commands/ps.rs index d2a86487cc..370b7b73d5 100644 --- a/src/commands/ps.rs +++ b/src/commands/ps.rs @@ -53,18 +53,18 @@ fn ps(args: CommandArgs, registry: &CommandRegistry) -> Result() as f64)); + yield ReturnSuccess::value(dict.into_tagged_value()); } - if let Ok(status) = process.status().await { - dict.insert("status", Value::string(format!("{:?}", status))); - } - dict.insert("cpu", Value::float(usage.get::() as f64)); - yield ReturnSuccess::value(dict.into_tagged_value()); } };