make sure entire segment is accounted for

This commit is contained in:
Josh Hawkins
2023-10-26 17:32:58 -06:00
committed by Nicolas Mowen
parent def889e3a8
commit 441c605312
+1 -1
View File
@@ -270,7 +270,7 @@ class RecordingMaintainer(threading.Thread):
][0]
# ensure delayed segment info does not lead to lost segments
if most_recently_processed_frame_time >= start_time.timestamp():
if most_recently_processed_frame_time >= end_time.timestamp():
record_mode = self.config.cameras[camera].record.retain.mode
return await self.move_segment(
camera, start_time, end_time, duration, cache_path, record_mode