Skip to content

Commit

Permalink
warn if no wait time
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeblackshear committed Nov 19, 2021
1 parent 585efe1 commit 3d556cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frigate/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d556cc

Please sign in to comment.