mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-08 13:51:01 +02:00
Fix storage graph
Recordings usage was not being subtracted from "Other" storage usage stats
This commit is contained in:
parent
6d5fb65a68
commit
ea4c911d6c
@ -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