Skip to content

Commit

Permalink
create Priority.LOWEST
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Jan 9, 2025
1 parent d8ccc73 commit 4dd828a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/loggerd/deleter.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class Priority:
CRITICAL = 4
PRESERVED = 2
NORMAL = 1
LOWEST = 0


def has_preserve_xattr(d: str) -> bool:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4dd828a

Please sign in to comment.