From 99e775a283fc178856df0d86c8771bbe7bdc3c1e Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sat, 11 Oct 2025 00:00:21 +0200 Subject: [PATCH] Update hardware.tsx --- AppImage/components/hardware.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AppImage/components/hardware.tsx b/AppImage/components/hardware.tsx index 7e0d868..67b95e9 100644 --- a/AppImage/components/hardware.tsx +++ b/AppImage/components/hardware.tsx @@ -30,6 +30,12 @@ const formatMemory = (memoryKB: number | string): string => { // Convert KB to MB const mb = kb / 1024 + // Convert to TB if >= 1024 GB + if (mb >= 1024 * 1024) { + const tb = mb / (1024 * 1024) + return `${tb.toFixed(1)} TB` + } + // Convert to GB if >= 1024 MB if (mb >= 1024) { const gb = mb / 1024