mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 17:17:40 +03:00
fix
This commit is contained in:
parent
d5d7272bf3
commit
fee10919d7
@ -66,7 +66,7 @@ def sync_recordings(limited: bool) -> None:
|
|||||||
|
|
||||||
if float(len(recordings_to_delete)) / max(1, recordings.count()) > 0.5:
|
if float(len(recordings_to_delete)) / max(1, recordings.count()) > 0.5:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
f"Deleting {(float(len(recordings_to_delete)) / recordings.count()):2f}% of recordings DB entries, could be due to configuration error. Aborting..."
|
f"Deleting {(len(recordings_to_delete) / max(1, recordings.count()) * 100):.2f}% of recordings DB entries, could be due to configuration error. Aborting..."
|
||||||
)
|
)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user