mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
keep 5 segments in cache
This commit is contained in:
parent
ba55b5a6db
commit
114415b5e1
@ -88,9 +88,9 @@ class RecordingMaintainer(threading.Thread):
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
# delete all cached files past the most recent 2
|
# delete all cached files past the most recent 5
|
||||||
for camera in grouped_recordings.keys():
|
for camera in grouped_recordings.keys():
|
||||||
if len(grouped_recordings[camera]) > 2:
|
if len(grouped_recordings[camera]) > 5:
|
||||||
sorted_recordings = sorted(
|
sorted_recordings = sorted(
|
||||||
grouped_recordings[camera], key=lambda i: i["start_time"]
|
grouped_recordings[camera], key=lambda i: i["start_time"]
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user