Add ppid field to ProcessInfo for tree view
- SHA
bb0bb3aca737c6c011a631084c6b99bd94dd51bb- Parents
-
1f8a15f - Tree
adc7d6f
bb0bb3a
bb0bb3aca737c6c011a631084c6b99bd94dd51bb1f8a15f
adc7d6f| Status | File | + | - |
|---|---|---|---|
| M |
gartop-ipc/src/lib.rs
|
2 | 0 |
gartop-ipc/src/lib.rsmodified@@ -160,6 +160,8 @@ pub struct MemoryStats { | |||
| 160 | pub struct ProcessInfo { | 160 | pub struct ProcessInfo { |
| 161 | /// Process ID. | 161 | /// Process ID. |
| 162 | pub pid: i32, | 162 | pub pid: i32, |
| 163 | + /// Parent process ID. | ||
| 164 | + pub ppid: i32, | ||
| 163 | /// Process name. | 165 | /// Process name. |
| 164 | pub name: String, | 166 | pub name: String, |
| 165 | /// Command line. | 167 | /// Command line. |