mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 00:25:23 +03:00
Avoid divide by zero in shm_frame_count
This commit is contained in:
parent
7d3313e732
commit
64898d063c
@ -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(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user