Default to 1 year retension
This commit is contained in:
@@ -290,7 +290,7 @@ export async function pruneHistory(opts = {}) {
|
||||
// Drop another 25% of retention window (or 1 day floor)
|
||||
const extraMs = Math.max(
|
||||
24 * 60 * 60 * 1000,
|
||||
Math.floor((config.warmRetentionMs || 7 * 24 * 60 * 60 * 1000) * 0.25)
|
||||
Math.floor((config.warmRetentionMs || 365 * 24 * 60 * 60 * 1000) * 0.25)
|
||||
)
|
||||
const tighter = (beforeMs != null ? beforeMs : started) - extraMs
|
||||
if (tighter > 0) {
|
||||
|
||||
Reference in New Issue
Block a user