diff --git a/AppImage/components/virtual-machines.tsx b/AppImage/components/virtual-machines.tsx index f658fbf..b0b2cdc 100644 --- a/AppImage/components/virtual-machines.tsx +++ b/AppImage/components/virtual-machines.tsx @@ -96,23 +96,6 @@ const formatBytes = (bytes: number | undefined): string => { return `${(bytes / Math.pow(k, i)).toFixed(2)} ${sizes[i]}` } -const extractIPFromNetConfig = (netConfig: string | undefined): string | null => { - if (!netConfig) return null - - // Check for DHCP - if (netConfig.includes("ip=dhcp")) { - return "DHCP" - } - - // Extract static IP (format: ip=192.168.0.4/24) - const ipMatch = netConfig.match(/ip=([0-9.]+)/) - if (ipMatch && ipMatch[1]) { - return ipMatch[1] - } - - return null -} - export function VirtualMachines() { const { data: vmData, @@ -296,12 +279,6 @@ export function VirtualMachines() { const memoryBadge = getMemoryOvercommitBadge() - console.log("[v0] VM Data:", vmData) - console.log("[v0] Physical Memory GB:", physicalMemoryGB) - console.log("[v0] Total Allocated Memory GB:", totalAllocatedMemoryGB) - console.log("[v0] Is Memory Overcommit:", isMemoryOvercommit) - console.log("[v0] Memory Badge:", memoryBadge) - if (isLoading) { return (