fix network units

This commit is contained in:
csehviktor
2025-07-10 20:50:19 +02:00
parent 67f871882e
commit 6225a45848
4 changed files with 11 additions and 5 deletions

View File

@@ -102,12 +102,12 @@ export function useChartData(data: StatusMessage | null): ChartDataReturns {
labels: realtimeData.map((p) => formatTimestamp(p.timestamp)),
datasets: [
{
label: "Upload (B/s)",
label: "Upload (bps)",
data: realtimeData.map(({ metrics }) => metrics.network.up),
color: "#ef4444",
},
{
label: "Download (B/s)",
label: "Download (bps)",
data: realtimeData.map(
({ metrics }) => metrics.network.down,
),