mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
warn if no wait time
This commit is contained in:
parent
114415b5e1
commit
8eabe5dd41
@ -230,9 +230,9 @@ class RecordingMaintainer(threading.Thread):
|
|||||||
logger.error(e)
|
logger.error(e)
|
||||||
duration = datetime.datetime.now().timestamp() - run_start
|
duration = datetime.datetime.now().timestamp() - run_start
|
||||||
wait_time = max(0, 5 - duration)
|
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(
|
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:
|
if self.first_pass:
|
||||||
self.first_pass = False
|
self.first_pass = False
|
||||||
|
Loading…
Reference in New Issue
Block a user