fix: preserve LXC OS hints and allow daily check margin

This commit is contained in:
VAIO73
2026-10-13 17:11:43 +00:00
parent e83e66caaf
commit 63f1e631b9
6 changed files with 104 additions and 22 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ export function isLxcUpdateStale(observation?: UpdateObservation, now = Date.now
if (!observation || observation.stale === true) return true
const checked = Date.parse(observation.last_check || "")
const age = now - checked
const limit = (observation.stale_after_seconds ?? 86400) * 1000
const limit = (observation.stale_after_seconds ?? 172800) * 1000
return !Number.isFinite(checked) || age < 0 || age >= limit
}