Fix storage graph (#19230)

Recordings usage was not being subtracted from "Other" storage usage stats
This commit is contained in:
Josh Hawkins 2025-07-22 07:24:15 -05:00 committed by GitHub
parent 455423e7f2
commit 480072b22d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",
});