Fix percentage in recording cleanup log

This commit is contained in:
Josh Hawkins 2025-08-15 08:05:46 -05:00
parent c2f8de94e8
commit d5d7272bf3

View File

@ -106,7 +106,7 @@ def sync_recordings(limited: bool) -> None:
if float(len(files_to_delete)) / max(1, len(files_on_disk)) > 0.5: if float(len(files_to_delete)) / max(1, len(files_on_disk)) > 0.5:
logger.debug( 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 return False