Selaa lähdekoodia

increase watchdog timeout to 10 seconds

blakeblackshear 5 vuotta sitten
vanhempi
commit
04fed31eac
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      frigate/video.py

+ 2 - 2
frigate/video.py

@@ -73,8 +73,8 @@ class CameraWatchdog(threading.Thread):
             # wait a bit before checking
             time.sleep(10)
 
-            if (datetime.datetime.now().timestamp() - self.camera.frame_time.value) > 2:
-                print("last frame is more than 2 seconds old, restarting camera capture...")
+            if (datetime.datetime.now().timestamp() - self.camera.frame_time.value) > 10:
+                print("last frame is more than 10 seconds old, restarting camera capture...")
                 self.camera.start_or_restart_capture()
                 time.sleep(5)