mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-20 12:36:18 +00:00
Update AppImage
This commit is contained in:
@@ -206,8 +206,12 @@ export function NetworkMetrics() {
|
||||
)
|
||||
}
|
||||
|
||||
const trafficInFormatted = formatNetworkTraffic(networkTotals.received * 1024 * 1024 * 1024, networkUnit)
|
||||
const trafficOutFormatted = formatNetworkTraffic(networkTotals.sent * 1024 * 1024 * 1024, networkUnit)
|
||||
const trafficInFormatted = networkUnit === "Bits"
|
||||
? `${(networkTotals.received * 8).toFixed(2)} Gb`
|
||||
: `${networkTotals.received.toFixed(2)} GB`
|
||||
const trafficOutFormatted = networkUnit === "Bits"
|
||||
? `${(networkTotals.sent * 8).toFixed(2)} Gb`
|
||||
: `${networkTotals.sent.toFixed(2)} GB`
|
||||
const packetsRecvK = networkData.traffic.packets_recv ? (networkData.traffic.packets_recv / 1000).toFixed(0) : "0"
|
||||
|
||||
const totalErrors = (networkData.traffic.errin || 0) + (networkData.traffic.errout || 0)
|
||||
@@ -883,7 +887,9 @@ export function NetworkMetrics() {
|
||||
{networkUnit === "Bits" ? "Bits Received" : "Bytes Received"}
|
||||
</div>
|
||||
<div className="font-medium text-green-500 text-lg">
|
||||
{formatNetworkTraffic(interfaceTotals.received * 1024 * 1024 * 1024, networkUnit)}
|
||||
{networkUnit === "Bits"
|
||||
? `${(interfaceTotals.received * 8).toFixed(2)} Gb`
|
||||
: `${interfaceTotals.received.toFixed(2)} GB`}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
@@ -891,7 +897,9 @@ export function NetworkMetrics() {
|
||||
{networkUnit === "Bits" ? "Bits Sent" : "Bytes Sent"}
|
||||
</div>
|
||||
<div className="font-medium text-blue-500 text-lg">
|
||||
{formatNetworkTraffic(interfaceTotals.sent * 1024 * 1024 * 1024, networkUnit)}
|
||||
{networkUnit === "Bits"
|
||||
? `${(interfaceTotals.sent * 8).toFixed(2)} Gb`
|
||||
: `${interfaceTotals.sent.toFixed(2)} GB`}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user