From d5d7272bf3f30b13f7b527b3c7b75f6ba6ef5780 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 15 Aug 2025 08:05:46 -0500 Subject: [PATCH] Fix percentage in recording cleanup log --- frigate/record/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/record/util.py b/frigate/record/util.py index 37a2b4645..2bcf1418b 100644 --- a/frigate/record/util.py +++ b/frigate/record/util.py @@ -106,7 +106,7 @@ def sync_recordings(limited: bool) -> None: if float(len(files_to_delete)) / max(1, len(files_on_disk)) > 0.5: logger.debug( - f"Deleting {(float(len(files_to_delete)) / len(files_on_disk)):2f}% of recordings DB entries, could be due to configuration error. Aborting..." + f"Deleting {(len(files_to_delete) / max(1, len(files_on_disk)) * 100):.2f}% of recordings DB entries, could be due to configuration error. Aborting..." ) return False