From 0a0b91606751ef2acdd5ff5286d4bed89f92b7fe Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sun, 9 Nov 2025 14:34:32 +0100 Subject: [PATCH] Update system-overview.tsx --- AppImage/components/system-overview.tsx | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/AppImage/components/system-overview.tsx b/AppImage/components/system-overview.tsx index 9c41550..b1a3ffb 100644 --- a/AppImage/components/system-overview.tsx +++ b/AppImage/components/system-overview.tsx @@ -562,6 +562,41 @@ export function SystemOverview() { {storageData ? (
+ {(() => { + // Calculate total storage across all volumes + const totalCapacity = (vmLxcStorageTotal || 0) + (localStorage?.total || 0) + + const totalUsed = (vmLxcStorageUsed || 0) + (localStorage?.used || 0) + + const totalAvailable = (vmLxcStorageAvailable || 0) + (localStorage?.available || 0) + + const totalPercent = totalCapacity > 0 ? (totalUsed / totalCapacity) * 100 : 0 + + return totalCapacity > 0 ? ( +
+
+ Total Node Capacity: + {formatStorage(totalCapacity)} +
+ +
+
+ + Used: {formatStorage(totalUsed)} + + + Free: {formatStorage(totalAvailable)} + +
+ {totalPercent.toFixed(1)}% +
+
+ ) : null + })()} +
Total Capacity: