mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-21 04:56:18 +00:00
Update network-metrics.tsx
This commit is contained in:
@@ -892,9 +892,7 @@ export function NetworkMetrics() {
|
||||
</div>
|
||||
<div className="font-medium text-green-500 text-lg">
|
||||
{formatNetworkTraffic(
|
||||
networkUnit === "Bits"
|
||||
? interfaceTotals.received * 8 * 1024 ** 3
|
||||
: interfaceTotals.received * 1024 ** 3,
|
||||
interfaceTotals.received * 1024 ** 3,
|
||||
networkUnit,
|
||||
2
|
||||
)}
|
||||
@@ -906,9 +904,7 @@ export function NetworkMetrics() {
|
||||
</div>
|
||||
<div className="font-medium text-blue-500 text-lg">
|
||||
{formatNetworkTraffic(
|
||||
networkUnit === "Bits"
|
||||
? interfaceTotals.sent * 8 * 1024 ** 3
|
||||
: interfaceTotals.sent * 1024 ** 3,
|
||||
interfaceTotals.sent * 1024 ** 3,
|
||||
networkUnit,
|
||||
2
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user