From d0873631ccba414b5c5671fdd72d0e3cf271b902 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 14 Jul 2023 19:46:01 -0600 Subject: [PATCH] Fix logic (#7165) --- 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) ):