This commit is contained in:
Dax Raad
2025-06-11 18:19:15 -04:00
parent 3c82fb6818
commit 468cec545a
7 changed files with 84 additions and 52 deletions

View File

@@ -36,7 +36,7 @@ export namespace Log {
.filter((entry) => entry.isFile() && entry.name.endsWith(".log"))
.map((entry) => path.join(dir, entry.name))
if (files.length <= 10) return
if (files.length <= 5) return
const filesToDelete = files.slice(0, -10)