Skip to content

NVR with realtime local object detection for IP cameras

Fix logic (#7165)

Nicolas Mowend0873631ccba
diff --git a/frigate/record/maintainer.py b/frigate/record/maintainer.py
index 21173cfa56..044a8e0d73 100644
--- a/frigate/record/maintainer.py
+++ b/frigate/record/maintainer.py
@@ -288,7 +288,7 @@ class RecordingMaintainer(threading.Thread):
if (
(store_mode == RetainModeEnum.motion and motion_count == 0)
or (
- store_mode == RetainModeEnum.motion and averageDBFS < 0
+ store_mode == RetainModeEnum.motion and averageDBFS == 0
) # dBFS is stored in a negative scale
or (store_mode == RetainModeEnum.active_objects and active_count == 0)
):