diff --git a/AppImage/components/system-overview.tsx b/AppImage/components/system-overview.tsx index 8bbe7a1d..9d8318bc 100644 --- a/AppImage/components/system-overview.tsx +++ b/AppImage/components/system-overview.tsx @@ -10,6 +10,7 @@ import { NetworkTrafficChart } from "./network-traffic-chart" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "./ui/select" import { fetchApi } from "../lib/api-config" import { formatNetworkTraffic, getNetworkUnit } from "../lib/format-network" +import { formatStorage } from "../lib/utils" interface SystemData { cpu_usage: number @@ -508,7 +509,7 @@ export function SystemOverview() {
Total Node Capacity: - {formatNetworkTraffic(totalCapacity, "Bytes")} + {formatStorage(totalCapacity)}
Used:{" "} - {formatNetworkTraffic(totalUsed, "Bytes")} + {formatStorage(totalUsed)} Free:{" "} - {formatNetworkTraffic(totalAvailable, "Bytes")} + {formatStorage(totalAvailable)} @@ -555,20 +556,20 @@ export function SystemOverview() {
Used: - {formatNetworkTraffic(vmLxcStorageUsed, "Bytes")} + {formatStorage(vmLxcStorageUsed)}
Available: - {formatNetworkTraffic(vmLxcStorageAvailable, "Bytes")} + {formatStorage(vmLxcStorageAvailable)}
- {formatNetworkTraffic(vmLxcStorageUsed, "Bytes")} /{" "} - {formatNetworkTraffic(vmLxcStorageTotal, "Bytes")} + {formatStorage(vmLxcStorageUsed)} /{" "} + {formatStorage(vmLxcStorageTotal)} {vmLxcStoragePercent.toFixed(1)}%
@@ -591,20 +592,20 @@ export function SystemOverview() {
Used: - {formatNetworkTraffic(localStorage.used, "Bytes")} + {formatStorage(localStorage.used)}
Available: - {formatNetworkTraffic(localStorage.available, "Bytes")} + {formatStorage(localStorage.available)}
- {formatNetworkTraffic(localStorage.used, "Bytes")} /{" "} - {formatNetworkTraffic(localStorage.total, "Bytes")} + {formatStorage(localStorage.used)} /{" "} + {formatStorage(localStorage.total)} {localStorage.percent.toFixed(1)}%