Add object detection, tracking, mobile notifications, and search to any security camera.
GiB to GB
roryclear3f85cd65948c
diff --git a/clearcam.py b/clearcam.pyindex 3762585..0ce29d0 100644--- a/clearcam.py+++ b/clearcam.py@@ -750,7 +750,7 @@ class HLSRequestHandler(BaseHTTPRequestHandler):def check_and_cleanup_storage(self):try:total_size = sum(f.stat().st_size for f in self.base_dir.glob('**/*') if f.is_file())- size_gb = total_size / (1024 ** 3)+ size_gb = total_size / (1000 ** 3)if size_gb > 30: # todo, hardcoded to 30GB for nowself.cleanup_oldest_files()except Exception as e: