[skip ci]

This commit is contained in:
overtake 2020-07-13 17:51:10 +03:00
parent acdd7a3851
commit 118422e26c

View File

@ -114,11 +114,13 @@ private final class TimeBasedCleanupImpl {
}) })
} }
for item in checkFiles.sorted(by: <) { clear: for item in checkFiles.sorted(by: <) {
if totalLimitSize > bytesLimit { if totalLimitSize > bytesLimit {
unlink(item.file) unlink(item.file)
removedGeneralLimitCount += 1 removedGeneralLimitCount += 1
totalLimitSize -= item.size totalLimitSize -= item.size
} else {
break clear
} }
} }