Fix ps command on linux (#6047)

Fixes #6042

Signed-off-by: nibon7 <nibon7@163.com>
This commit is contained in:
nibon7 2022-07-14 19:20:54 +08:00 committed by GitHub
parent ed50210832
commit d95a065e3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,8 +93,8 @@ pub fn collect_proc(interval: Duration, with_thread: bool) -> Vec<ProcessInfo> {
if let Ok(iter) = proc.tasks() {
collect_task(iter, &mut base_tasks);
}
base_procs.push((proc.pid(), proc, io, time));
}
base_procs.push((proc.pid(), proc, io, time));
// match proc {
// Ok(p) => {
// let io = p.io().ok();