浏览代码

disable disk sync on startup

Blake Blackshear 3 年之前
父节点
当前提交
e6292c719d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      frigate/record.py

+ 2 - 2
frigate/record.py

@@ -544,8 +544,8 @@ class RecordingCleanup(threading.Thread):
         logger.debug("End sync recordings.")
 
     def run(self):
-        # on startup sync recordings with disk
-        self.sync_recordings()
+        # on startup sync recordings with disk (disabled due to too much CPU usage)
+        # self.sync_recordings()
 
         # Expire tmp clips every minute, recordings and clean directories every hour.
         for counter in itertools.cycle(range(60)):