Fix backup cleaner
This commit is contained in:
parent
d11631a942
commit
148099a4d2
@ -33,7 +33,7 @@ public abstract class BackupCleaner implements UnaryOperator<TreeSet<LocalDateTi
|
|||||||
return localDateTimes.stream()
|
return localDateTimes.stream()
|
||||||
.collect(Collectors.groupingBy(
|
.collect(Collectors.groupingBy(
|
||||||
ldt -> {
|
ldt -> {
|
||||||
return ldt.getYear() * 4 + ldt.getMonthValue() / 2;
|
return ldt.getYear() * 4 + ldt.getMonthValue() / n;
|
||||||
},
|
},
|
||||||
TreeMap::new,
|
TreeMap::new,
|
||||||
Collectors.minBy(LocalDateTime::compareTo))
|
Collectors.minBy(LocalDateTime::compareTo))
|
||||||
|
Loading…
Reference in New Issue
Block a user