From 114415b5e1f1882619d703e79c783c29db00c19f Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Fri, 19 Nov 2021 07:16:29 -0600 Subject: [PATCH] keep 5 segments in cache --- frigate/record.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/record.py b/frigate/record.py index 2983b0679..f3f558b45 100644 --- a/frigate/record.py +++ b/frigate/record.py @@ -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(): - if len(grouped_recordings[camera]) > 2: + if len(grouped_recordings[camera]) > 5: sorted_recordings = sorted( grouped_recordings[camera], key=lambda i: i["start_time"] )