disable disk sync on startup

This commit is contained in:
Blake Blackshear 2021-12-13 06:51:03 -06:00
parent 7c74bf2566
commit e6292c719d

View File

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