diff --git a/AppImage/components/network-metrics.tsx b/AppImage/components/network-metrics.tsx index decedb0..67bd235 100644 --- a/AppImage/components/network-metrics.tsx +++ b/AppImage/components/network-metrics.tsx @@ -789,73 +789,40 @@ export function NetworkMetrics() { )} -
- {/* Traffic Statistics - Left Column */} -
-

Traffic since last boot

-
-
-
Bytes Received
-
- {formatStorage(interfaceTotals.received * 1024 * 1024 * 1024)} -
-
-
-
Bytes Sent
-
- {formatStorage(interfaceTotals.sent * 1024 * 1024 * 1024)} -
-
-
-
Packets Received
-
{selectedInterface.packets_recv?.toLocaleString() || "N/A"}
-
-
-
Packets Sent
-
{selectedInterface.packets_sent?.toLocaleString() || "N/A"}
-
-
-
Errors In
-
{selectedInterface.errors_in || 0}
-
-
-
Errors Out
-
{selectedInterface.errors_out || 0}
-
-
-
Drops In
-
{selectedInterface.drops_in || 0}
-
-
-
Drops Out
-
{selectedInterface.drops_out || 0}
-
- {selectedInterface.packet_loss_in !== undefined && ( +
+

+ Network Traffic Statistics ( + {modalTimeframe === "hour" + ? "Last Hour" + : modalTimeframe === "day" + ? "Last 24 Hours" + : modalTimeframe === "week" + ? "Last 7 Days" + : modalTimeframe === "month" + ? "Last 30 Days" + : "Last Year"} + ) +

+
+ {/* Traffic Data - Left Column */} +
+
-
Packet Loss In
-
1 ? "text-red-500" : "text-green-500"}`} - > - {selectedInterface.packet_loss_in}% +
Bytes Received
+
+ {formatStorage(interfaceTotals.received * 1024 * 1024 * 1024)}
- )} - {selectedInterface.packet_loss_out !== undefined && (
-
Packet Loss Out
-
1 ? "text-red-500" : "text-green-500"}`} - > - {selectedInterface.packet_loss_out}% +
Bytes Sent
+
+ {formatStorage(interfaceTotals.sent * 1024 * 1024 * 1024)}
- )} +
-
- {/* Network Traffic Chart - Right Column */} -
-

Network Traffic History

+ {/* Network Traffic Chart - Right Column */}
+
+

+ Cumulative Statistics (Since Last Boot) +

+
+
+
Packets Received
+
{selectedInterface.packets_recv?.toLocaleString() || "N/A"}
+
+
+
Packets Sent
+
{selectedInterface.packets_sent?.toLocaleString() || "N/A"}
+
+
+
Errors In
+
{selectedInterface.errors_in || 0}
+
+
+
Errors Out
+
{selectedInterface.errors_out || 0}
+
+
+
Drops In
+
{selectedInterface.drops_in || 0}
+
+
+
Drops Out
+
{selectedInterface.drops_out || 0}
+
+ {selectedInterface.packet_loss_in !== undefined && ( +
+
Packet Loss In
+
1 ? "text-red-500" : "text-green-500"}`} + > + {selectedInterface.packet_loss_in}% +
+
+ )} + {selectedInterface.packet_loss_out !== undefined && ( +
+
Packet Loss Out
+
1 ? "text-red-500" : "text-green-500"}`} + > + {selectedInterface.packet_loss_out}% +
+
+ )} +
+
+ {/* Bond Information */} {selectedInterface.type === "bond" && selectedInterface.bond_slaves && (