From 148099a4d2f81c9d2791ae9f000ef373da2cca9a Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Wed, 14 Dec 2022 19:28:37 +0100 Subject: [PATCH] Fix backup cleaner --- .../fr/pandacube/lib/paper/modules/backup/BackupCleaner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/BackupCleaner.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/BackupCleaner.java index e4b2203..a17549d 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/BackupCleaner.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/BackupCleaner.java @@ -33,7 +33,7 @@ public abstract class BackupCleaner implements UnaryOperator { - return ldt.getYear() * 4 + ldt.getMonthValue() / 2; + return ldt.getYear() * 4 + ldt.getMonthValue() / n; }, TreeMap::new, Collectors.minBy(LocalDateTime::compareTo))