mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-30 13:48:07 +02:00
Fix storage graph (#19230)
Recordings usage was not being subtracted from "Other" storage usage stats
This commit is contained in:
parent
455423e7f2
commit
480072b22d
@ -62,8 +62,10 @@ export function CombinedStorageGraph({
|
|||||||
// Add the unused percentage to the series
|
// Add the unused percentage to the series
|
||||||
series.push({
|
series.push({
|
||||||
name: "Other",
|
name: "Other",
|
||||||
data: [(totalStorage.used / totalStorage.total) * 100],
|
data: [
|
||||||
usage: totalStorage.used,
|
((totalStorage.used - totalStorage.camera) / totalStorage.total) * 100,
|
||||||
|
],
|
||||||
|
usage: totalStorage.used - totalStorage.camera,
|
||||||
bandwidth: 0,
|
bandwidth: 0,
|
||||||
color: (systemTheme || theme) == "dark" ? "#606060" : "#D5D5D5",
|
color: (systemTheme || theme) == "dark" ? "#606060" : "#D5D5D5",
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user