From 0ffe1272fe0cdeb2937c695cd4db7aab6a507c58 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 18 Nov 2025 19:24:23 +0100 Subject: [PATCH] Update virtual-machines.tsx --- AppImage/components/virtual-machines.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/AppImage/components/virtual-machines.tsx b/AppImage/components/virtual-machines.tsx index 603b1f7..a4ff3fd 100644 --- a/AppImage/components/virtual-machines.tsx +++ b/AppImage/components/virtual-machines.tsx @@ -172,13 +172,6 @@ const fetcher = async (url: string) => { return fetchApi(url) } -const formatBytes = (bytes: number | undefined): string => { - if (!bytes || bytes === 0) return "0 B" - const k = 1024 - const sizes = ["B", "KB", "MB", "GB", "TB"] - const i = Math.floor(Math.log(bytes) / Math.log(k)) - return `${(bytes / Math.pow(k, i)).toFixed(2)} ${sizes[i]}` -} const formatUptime = (seconds: number) => { const days = Math.floor(seconds / 86400)