Show container info in process detail view
- SHA
5623a9f72c3cdea27d8f8649b4a1ae3c050d8d8e- Parents
-
be86402 - Tree
5d85746
5623a9f
5623a9f72c3cdea27d8f8649b4a1ae3c050d8d8ebe86402
5d85746| Status | File | + | - |
|---|---|---|---|
| M |
gartop/src/gui/app.rs
|
8 | 0 |
gartop/src/gui/app.rsmodified@@ -713,6 +713,14 @@ impl App { | ||
| 713 | 713 | self.renderer.text(&process.user, x + 80.0, y, &value_style)?; |
| 714 | 714 | y += row_height; |
| 715 | 715 | |
| 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 | + | |
| 716 | 724 | // CPU |
| 717 | 725 | self.renderer.text("CPU:", x, y, &label_style)?; |
| 718 | 726 | let cpu_style = TextStyle { color: self.theme.cpu_color, ..value_style.clone() }; |