diff --git a/frigate/storage.py b/frigate/storage.py index 360a1d96f..3e5a48e3f 100644 --- a/frigate/storage.py +++ b/frigate/storage.py @@ -64,7 +64,9 @@ class StorageMaintainer(threading.Thread): """Return if storage needs cleanup.""" # currently runs cleanup if less than 1 hour of space is left remaining_storage = round(shutil.disk_usage(RECORD_DIR).free / 1000000, 1) - logger.debug(f"Storage cleanup check: {self.avg_segment_sizes['total']['hour']} hourly with remaining storage: {remaining_storage}") + logger.debug( + f"Storage cleanup check: {self.avg_segment_sizes['total']['hour']} hourly with remaining storage: {remaining_storage}" + ) return remaining_storage < self.avg_segment_sizes["total"]["hour"] def delete_recording_segments(