From ed15b66540dbbf58c46f2acb2e0c6afb82c1fe93 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 6 Apr 2024 08:50:04 -0600 Subject: [PATCH] formatting --- frigate/const.py | 2 +- frigate/record/cleanup.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frigate/const.py b/frigate/const.py index ce99b5a7b..4e28b06a2 100644 --- a/frigate/const.py +++ b/frigate/const.py @@ -41,7 +41,7 @@ AUDIO_MIN_CONFIDENCE = 0.5 # DB Consts -MAX_WAL_SIZE = 20 # MB +MAX_WAL_SIZE = 20 # MB # Ffmpeg Presets diff --git a/frigate/record/cleanup.py b/frigate/record/cleanup.py index 803515ff4..c45ea032d 100644 --- a/frigate/record/cleanup.py +++ b/frigate/record/cleanup.py @@ -46,7 +46,9 @@ class RecordingCleanup(threading.Thread): # with auto checkpoint most users should never hit this - if (os.stat(f"{self.config.database.path}-wal").st_size / (1024 * 1024)) > MAX_WAL_SIZE: + if ( + os.stat(f"{self.config.database.path}-wal").st_size / (1024 * 1024) + ) > MAX_WAL_SIZE: db = SqliteExtDatabase(self.config.database.path) db.execute_sql("PRAGMA wal_checkpoint(TRUNCATE);") db.close()