gardesk/gartop / fa15b39

Browse files

Add container field to ProcessInfo for container detection

Authored by espadonne
SHA
fa15b39a8226e53c81fd219f6087c779d7f6184b
Parents
d102575
Tree
4a01495

1 changed file

StatusFile+-
M gartop-ipc/src/lib.rs 2 0
gartop-ipc/src/lib.rsmodified
@@ -202,6 +202,8 @@ pub struct ProcessInfo {
202202
     pub state: String,
203203
     /// User owning the process.
204204
     pub user: String,
205
+    /// Container ID (if running in a container, e.g., Docker/Podman).
206
+    pub container: Option<String>,
205207
 }
206208
 
207209
 /// Network interface statistics.