fix(beszel): use bandwidth field (b) for public interface traffic

In Beszel, ns/nr are all-interface traffic (loopback, docker bridges)
while b is public interface bandwidth. Use b with ns/nr fallback for
both system stats and container network charts to match what the
grid/table display via netBytes.
This commit is contained in:
Thomas Camlong committed 2026-06-08 15:57:18 +02:00
1 parent 515b285ef7
commit 2bf014ba43
2 files changed
+4 -4

No files matched your search

@@ -76,9 +76,9 @@ export default function BeszelSystemStatsWidget({
[t],
);
const networkMap = useCallback(
(s: { ns: number; nr: number }) => ({
[t("chart.network.sent")]: s.ns,
[t("chart.network.recv")]: s.nr,
(s: { ns: number; nr: number; b?: [number, number] }) => ({
[t("chart.network.sent")]: s.b?.[0] ?? s.ns,
[t("chart.network.recv")]: s.b?.[1] ?? s.nr,
}),
[t],
);