From 654df5b98fb3e68deefbb01960fe1ac77a84c049 Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 5 Jun 2026 18:22:24 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Disk=20Usage=20zeigt=20undefined=20f?= =?UTF-8?q?=C3=BCr=20TB/PB=20Werte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lokale formatBytes Funktion hatte sizes Array nur bis GB. TB und PB ergänzt. Co-Authored-By: Claude Sonnet 4.6 --- frontend/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/page.tsx b/frontend/app/page.tsx index 081e705..0fa12fa 100644 --- a/frontend/app/page.tsx +++ b/frontend/app/page.tsx @@ -68,7 +68,7 @@ export default function Dashboard() { const formatBytes = (bytes: number) => { if (bytes === 0) return "0 B" const k = 1024 - const sizes = ["B", "KB", "MB", "GB"] + const sizes = ["B", "KB", "MB", "GB", "TB", "PB"] const i = Math.floor(Math.log(bytes) / Math.log(k)) return (bytes / Math.pow(k, i)).toFixed(1) + " " + sizes[i] }