From f41781ba93bfc1ccc872119e56b534c3bbc747ec Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 14 Jul 2023 19:04:46 -0600 Subject: [PATCH] Fix logic --- frigate/record/maintainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/record/maintainer.py b/frigate/record/maintainer.py index 21173cfa5..044a8e0d7 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) ):