Avoid divide by zero in shm_frame_count (#14750)

This commit is contained in:
leccelecce 2024-11-03 15:28:19 +00:00 committed by GitHub
parent 44f40966e7
commit 189d4b459f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -512,6 +512,9 @@ class FrigateApp:
1, 1,
) )
if cam_total_frame_size == 0.0:
return 0
shm_frame_count = min(50, int(available_shm / (cam_total_frame_size))) shm_frame_count = min(50, int(available_shm / (cam_total_frame_size)))
logger.debug( logger.debug(