From 5fe1bfa2fd44325a1bbd8e17d4e537b8bc1f81bc Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Thu, 9 Jan 2025 13:05:13 +0000 Subject: [PATCH] create Priority.LOWEST --- system/loggerd/deleter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/loggerd/deleter.py b/system/loggerd/deleter.py index f430c86dea5faa..8d583ff1382a4a 100755 --- a/system/loggerd/deleter.py +++ b/system/loggerd/deleter.py @@ -24,6 +24,7 @@ class Priority: CRITICAL = 4 PRESERVED = 2 NORMAL = 1 + LOWEST = 0 def has_preserve_xattr(d: str) -> bool: @@ -95,7 +96,7 @@ def deleter_thread(exit_event): elif delete_dir in preserved_segments: priority = Priority.PRESERVED else: - priority = 0 + priority = Priority.LOWEST for fn in fns: if fn in DASHCAM_FILES: