mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
increase watchdog timeout to 10 seconds
This commit is contained in:
parent
ebaa8fac01
commit
04fed31eac
@ -73,8 +73,8 @@ class CameraWatchdog(threading.Thread):
|
|||||||
# wait a bit before checking
|
# wait a bit before checking
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
|
|
||||||
if (datetime.datetime.now().timestamp() - self.camera.frame_time.value) > 2:
|
if (datetime.datetime.now().timestamp() - self.camera.frame_time.value) > 10:
|
||||||
print("last frame is more than 2 seconds old, restarting camera capture...")
|
print("last frame is more than 10 seconds old, restarting camera capture...")
|
||||||
self.camera.start_or_restart_capture()
|
self.camera.start_or_restart_capture()
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user