This commit is contained in:
Blake Blackshear
2021-05-23 08:16:41 -05:00
parent 80f8256422
commit 1fbcf4d9b9
2 changed files with 3 additions and 2 deletions

View File

@@ -110,7 +110,8 @@ class EventProcessor(threading.Thread):
# if the earliest event is more tha max seconds ago, cap it
earliest_event = max(
earliest_event, datetime.datetime.now().timestamp() - max_seconds
earliest_event,
datetime.datetime.now().timestamp() - self.config.clips.max_seconds,
)
for f, data in list(self.cached_clips.items()):