diff --git a/AppImage/components/network-traffic-chart.tsx b/AppImage/components/network-traffic-chart.tsx index 38e99c2..d0c0c65 100644 --- a/AppImage/components/network-traffic-chart.tsx +++ b/AppImage/components/network-traffic-chart.tsx @@ -100,6 +100,12 @@ export function NetworkTrafficChart({ timeframe, onTotalsCalculated }: NetworkTr hour: "2-digit", hour12: false, }) + } else if (timeframe === "year") { + timeLabel = date.toLocaleString("en-US", { + month: "short", + day: "numeric", + year: "numeric", + }) } else { timeLabel = date.toLocaleString("en-US", { month: "short", diff --git a/AppImage/components/system-overview.tsx b/AppImage/components/system-overview.tsx index c7bec5e..ce7ec73 100644 --- a/AppImage/components/system-overview.tsx +++ b/AppImage/components/system-overview.tsx @@ -470,6 +470,8 @@ export function SystemOverview() { return "7d" case "month": return "30d" + case "year": + return "1y" default: return timeframe } @@ -657,6 +659,7 @@ export function SystemOverview() { 24 Hours 7 Days 30 Days + 1 Year