bugfix zombie procs
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rsnmpagent"
|
name = "rsnmpagent"
|
||||||
version = "0.4.4"
|
version = "0.4.5"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ pub(crate) fn count_processes(proc_path: &Path) -> io::Result<Ptypes> {
|
|||||||
75 => counts.wakekill += 1, // K
|
75 => counts.wakekill += 1, // K
|
||||||
87 => counts.waking += 1, // W
|
87 => counts.waking += 1, // W
|
||||||
73 => counts.idle += 1, // I
|
73 => counts.idle += 1, // I
|
||||||
|
90 => counts.zombie += 1, // Z
|
||||||
_ => warn!("unknown proc status value {}", byteval),
|
_ => warn!("unknown proc status value {}", byteval),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user