feat: Network chart, closes #79

This commit is contained in:
Jack Wills
2026-02-23 13:57:50 +00:00
parent 5f942eb2e9
commit 99fcb8fedf
39 changed files with 1360 additions and 175 deletions
+10 -2
View File
@@ -82,11 +82,19 @@ fn format_containers<'a>(colors: AppColors, i: &ContainerItem, widths: &Columns)
colors.containers.text,
),
Span::styled(
format!("{:>width$}{MARGIN}", i.rx, width = widths.net_rx.1.into()),
format!(
"{:>width$}{MARGIN}",
i.rx.current_total(),
width = widths.net_rx.1.into()
),
Style::default().fg(colors.containers.text_rx),
),
Span::styled(
format!("{:>width$}{MARGIN}", i.tx, width = widths.net_tx.1.into()),
format!(
"{:>width$}{MARGIN}",
i.tx.current_total(),
width = widths.net_tx.1.into()
),
Style::default().fg(colors.containers.text_tx),
),
])