From 480072b22d7e4270b230c0f1b32e00b10b8facda Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 22 Jul 2025 07:24:15 -0500 Subject: [PATCH] Fix storage graph (#19230) Recordings usage was not being subtracted from "Other" storage usage stats --- web/src/components/graph/CombinedStorageGraph.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/src/components/graph/CombinedStorageGraph.tsx b/web/src/components/graph/CombinedStorageGraph.tsx index 97b42ab9d..4279e73c2 100644 --- a/web/src/components/graph/CombinedStorageGraph.tsx +++ b/web/src/components/graph/CombinedStorageGraph.tsx @@ -62,8 +62,10 @@ export function CombinedStorageGraph({ // Add the unused percentage to the series series.push({ name: "Other", - data: [(totalStorage.used / totalStorage.total) * 100], - usage: totalStorage.used, + data: [ + ((totalStorage.used - totalStorage.camera) / totalStorage.total) * 100, + ], + usage: totalStorage.used - totalStorage.camera, bandwidth: 0, color: (systemTheme || theme) == "dark" ? "#606060" : "#D5D5D5", });