Update record.py

I'd like to test a higher limit for recording segments to avoid recording loss. Say, changing 5 to 20.
Is there a downside apart from using a bit more cache?
This commit is contained in:
LaurenceGough 2023-02-07 20:53:18 +00:00 committed by GitHub
parent b6b10e753f
commit ee85c5bc2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,8 +95,8 @@ class RecordingMaintainer(threading.Thread):
}
)
# delete all cached files past the most recent 5
keep_count = 5
# delete all cached files past the most recent 20
keep_count = 20
for camera in grouped_recordings.keys():
segment_count = len(grouped_recordings[camera])
if segment_count > keep_count: