gardesk/gartop / 5623a9f

Browse files

Show container info in process detail view

Authored by espadonne
SHA
5623a9f72c3cdea27d8f8649b4a1ae3c050d8d8e
Parents
be86402
Tree
5d85746

1 changed file

StatusFile+-
M gartop/src/gui/app.rs 8 0
gartop/src/gui/app.rsmodified
@@ -713,6 +713,14 @@ impl App {
713713
         self.renderer.text(&process.user, x + 80.0, y, &value_style)?;
714714
         y += row_height;
715715
 
716
+        // Container (if any)
717
+        if let Some(ref container) = process.container {
718
+            self.renderer.text("Container:", x, y, &label_style)?;
719
+            let container_style = TextStyle { color: self.theme.network_color, ..value_style.clone() };
720
+            self.renderer.text(container, x + 80.0, y, &container_style)?;
721
+            y += row_height;
722
+        }
723
+
716724
         // CPU
717725
         self.renderer.text("CPU:", x, y, &label_style)?;
718726
         let cpu_style = TextStyle { color: self.theme.cpu_color, ..value_style.clone() };