Update network-metrics.tsx

This commit is contained in:
MacRimi
2025-11-19 22:33:28 +01:00
parent c4cce5d184
commit 31168fbeca

View File

@@ -892,9 +892,7 @@ export function NetworkMetrics() {
</div> </div>
<div className="font-medium text-green-500 text-lg"> <div className="font-medium text-green-500 text-lg">
{formatNetworkTraffic( {formatNetworkTraffic(
networkUnit === "Bits" interfaceTotals.received * 1024 ** 3,
? interfaceTotals.received * 8 * 1024 ** 3
: interfaceTotals.received * 1024 ** 3,
networkUnit, networkUnit,
2 2
)} )}
@@ -906,9 +904,7 @@ export function NetworkMetrics() {
</div> </div>
<div className="font-medium text-blue-500 text-lg"> <div className="font-medium text-blue-500 text-lg">
{formatNetworkTraffic( {formatNetworkTraffic(
networkUnit === "Bits" interfaceTotals.sent * 1024 ** 3,
? interfaceTotals.sent * 8 * 1024 ** 3
: interfaceTotals.sent * 1024 ** 3,
networkUnit, networkUnit,
2 2
)} )}