diff --git a/AppImage/components/system-overview.tsx b/AppImage/components/system-overview.tsx index 23a34b8..8290ff4 100644 --- a/AppImage/components/system-overview.tsx +++ b/AppImage/components/system-overview.tsx @@ -30,6 +30,7 @@ interface VMData { disk: number maxdisk: number uptime: number + type?: string } interface HistoricalData { @@ -259,7 +260,8 @@ export function SystemOverview() { total: vmData.length, running: vmData.filter((vm) => vm.status === "running").length, stopped: vmData.filter((vm) => vm.status === "stopped").length, - lxc: 0, + lxc: vmData.filter((vm) => vm.type === "lxc").length, + vms: vmData.filter((vm) => vm.type === "qemu" || !vm.type).length, } const getTemperatureStatus = (temp: number) => { @@ -323,7 +325,7 @@ export function SystemOverview() { - Active VMs + Active VM & LXC @@ -338,7 +340,9 @@ export function SystemOverview() { )} -

Total: {vmStats.total} VMs configured

+

+ Total: {vmStats.vms} VMs, {vmStats.lxc} LXC +