mirror of
https://github.com/csehviktor/status-monitor.git
synced 2025-08-08 18:06:14 +02:00
fix network units
This commit is contained in:
@@ -11,9 +11,10 @@ import { SysinfoCard } from "@/components/SysinfoCard";
|
||||
import { useChartData } from "@/hooks/useChartData";
|
||||
import { getLastMessage, setLastMessage } from "@/services/store";
|
||||
import {
|
||||
formatBytes,
|
||||
formatBits,
|
||||
formatPercentage,
|
||||
calcPercentage,
|
||||
formatBytes,
|
||||
} from "@/services/utils";
|
||||
import { initializeConnection } from "@/services/websocket";
|
||||
import { useEffect, useState } from "react";
|
||||
@@ -127,9 +128,9 @@ export function AgentPage() {
|
||||
<MetricCard
|
||||
props={{
|
||||
title: "NETWORK ACTIVITY",
|
||||
value: formatBytes(networkUsage),
|
||||
value: formatBits(networkUsage),
|
||||
status: "nil",
|
||||
subtitle: `↑ ${formatBytes(networkUp)}/s ↓ ${formatBytes(networkDown)}/s`,
|
||||
subtitle: `↑ ${formatBits(networkUp)}/s ↓ ${formatBits(networkDown)}/s`,
|
||||
}}
|
||||
>
|
||||
<DonutChart
|
||||
|
||||
Reference in New Issue
Block a user