Skip to content

NVR with realtime local object detection for IP cameras

Fix storage graph (#19230)

Josh Hawkins480072b22d7e
diff --git a/web/src/components/graph/CombinedStorageGraph.tsx b/web/src/components/graph/CombinedStorageGraph.tsx
index 97b42ab9d5..4279e73c2e 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",
});