From 3d556cc2cb683763596527a1eda5a43d093f1976 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Fri, 19 Nov 2021 07:19:14 -0600 Subject: [PATCH] warn if no wait time --- frigate/record.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/record.py b/frigate/record.py index f3f558b45a..749ab6dff1 100644 --- a/frigate/record.py +++ b/frigate/record.py @@ -230,9 +230,9 @@ def run(self): logger.error(e) duration = datetime.datetime.now().timestamp() - run_start wait_time = max(0, 5 - duration) - if duration > 10 and not self.first_pass: + if wait_time == 0 and not self.first_pass: logger.warning( - "Cache maintenance is taking longer than 10 seconds to clear. Your recordings disk may be too slow." + "Cache is taking longer than 5 seconds to clear. Your recordings disk may be too slow." ) if self.first_pass: self.first_pass = False