Run initial retention checks regardless of host uptime

This commit is contained in:
Pigway
2026-10-10 01:35:32 +08:00
parent 7d10d5b601
commit 4fdb7a4407
4 changed files with 24 additions and 3 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ class LocalRetention:
}
def sweep(self, force=False, dry_run=False):
if not force and time.monotonic() - self.last < 3600:
if not force and self.last and time.monotonic() - self.last < 3600:
return {}
if not dry_run:
self.last = time.monotonic()