forked from extern/nushell
Fix ps command on linux (#6047)
Fixes #6042 Signed-off-by: nibon7 <nibon7@163.com>
This commit is contained in:
parent
ed50210832
commit
d95a065e3d
@ -93,8 +93,8 @@ pub fn collect_proc(interval: Duration, with_thread: bool) -> Vec<ProcessInfo> {
|
|||||||
if let Ok(iter) = proc.tasks() {
|
if let Ok(iter) = proc.tasks() {
|
||||||
collect_task(iter, &mut base_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 {
|
// match proc {
|
||||||
// Ok(p) => {
|
// Ok(p) => {
|
||||||
// let io = p.io().ok();
|
// let io = p.io().ok();
|
||||||
|
Loading…
Reference in New Issue
Block a user