Explorar o código

warn if no wait time

Blake Blackshear %!s(int64=3) %!d(string=hai) anos
pai
achega
8eabe5dd41
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      frigate/record.py

+ 2 - 2
frigate/record.py

@@ -230,9 +230,9 @@ class RecordingMaintainer(threading.Thread):
                 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