From 1c2685515c1cb3cda2b6cd79366ecaff879c38fb Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Thu, 15 Jun 2023 07:06:21 -0600 Subject: [PATCH] Formatting --- frigate/record/maintainer.py | 2 -- frigate/util.py | 1 - 2 files changed, 3 deletions(-) diff --git a/frigate/record/maintainer.py b/frigate/record/maintainer.py index d2aeea4b9..272720e5a 100644 --- a/frigate/record/maintainer.py +++ b/frigate/record/maintainer.py @@ -123,11 +123,9 @@ class RecordingMaintainer(threading.Thread): .order_by(Event.start_time) ) - start = datetime.datetime.now().timestamp() await asyncio.gather( *(self.validate_segment(camera, events, r) for r in recordings) ) - logger.error(f"The time took {datetime.datetime.now().timestamp() - start} seconds") async def validate_segment( self, camera: str, events: Event, recording: dict[str, any] diff --git a/frigate/util.py b/frigate/util.py index 51d5a5433..a3005e356 100755 --- a/frigate/util.py +++ b/frigate/util.py @@ -1159,7 +1159,6 @@ def get_video_properties(url, get_duration=False): # Get the frames per second (fps) of the video stream fps = video.get(cv2.CAP_PROP_FPS) total_frames = int(video.get(cv2.CAP_PROP_FRAME_COUNT)) - logger.error(f"Got values {total_frames} / {fps} == {total_frames / max(fps, 1)}") if fps and total_frames: duration = total_frames / fps