Add container field to ProcessInfo for container detection
- SHA
fa15b39a8226e53c81fd219f6087c779d7f6184b- Parents
-
d102575 - Tree
4a01495
fa15b39
fa15b39a8226e53c81fd219f6087c779d7f6184bd102575
4a01495| Status | File | + | - |
|---|---|---|---|
| M |
gartop-ipc/src/lib.rs
|
2 | 0 |
gartop-ipc/src/lib.rsmodified@@ -202,6 +202,8 @@ pub struct ProcessInfo { | ||
| 202 | 202 | pub state: String, |
| 203 | 203 | /// User owning the process. |
| 204 | 204 | pub user: String, |
| 205 | + /// Container ID (if running in a container, e.g., Docker/Podman). | |
| 206 | + pub container: Option<String>, | |
| 205 | 207 | } |
| 206 | 208 | |
| 207 | 209 | /// Network interface statistics. |