From 5e168c2561fac97b5ca47becebe7271229f9efae Mon Sep 17 00:00:00 2001 From: MacRimi Date: Thu, 2 Oct 2025 17:49:40 +0200 Subject: [PATCH] Update system-overview.tsx --- AppImage/components/system-overview.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 +