From ee85c5bc2fb5f21405f997c1e2249e9b689880d1 Mon Sep 17 00:00:00 2001 From: LaurenceGough <82294976+LaurenceGough@users.noreply.github.com> Date: Tue, 7 Feb 2023 20:53:18 +0000 Subject: [PATCH] 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? --- frigate/record.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/record.py b/frigate/record.py index 4b7a25a7c..bdde21948 100644 --- a/frigate/record.py +++ b/frigate/record.py @@ -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: