From da9708f973fd2d2a373c80413ab9ba36ad44471c Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 3 Sep 2024 08:43:58 -0600 Subject: [PATCH] Formatting --- frigate/app.py | 7 +++---- frigate/output/birdseye.py | 4 +--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/frigate/app.py b/frigate/app.py index cdcf01b2d..68e5c872c 100644 --- a/frigate/app.py +++ b/frigate/app.py @@ -615,13 +615,12 @@ class FrigateApp: for camera in self.config.cameras.values(): if camera.enabled: cam_total_frame_size += round( - (camera.detect.width * camera.detect.height * 1.5 + 270480) / 1048576, + (camera.detect.width * camera.detect.height * 1.5 + 270480) + / 1048576, 1, ) - self.shm_frame_count = min( - 50, int(available_shm / (cam_total_frame_size)) - ) + self.shm_frame_count = min(50, int(available_shm / (cam_total_frame_size))) logger.debug( f"Calculated total camera size {available_shm} / {cam_total_frame_size} :: {self.shm_frame_count} frames for each camera in SHM" diff --git a/frigate/output/birdseye.py b/frigate/output/birdseye.py index 36376ebc5..e22628ecd 100644 --- a/frigate/output/birdseye.py +++ b/frigate/output/birdseye.py @@ -362,9 +362,7 @@ class BirdsEyeFrameManager: ) if frame is None: - logger.debug( - f"Unable to copy frame {camera}{frame_time} to birdseye." - ) + logger.debug(f"Unable to copy frame {camera}{frame_time} to birdseye.") return channel_dims = self.cameras[camera]["channel_dims"]