Experimental: roll back performance-related changes

This commit is contained in:
Ali
2023-01-09 21:54:58 +04:00
parent 7ec7450849
commit 3b31d6bbcd
2 changed files with 74 additions and 11 deletions

View File

@@ -317,6 +317,11 @@ private final class TimeBasedCleanupImpl {
}
private func resetScan(general: Int32, shortLived: Int32, gigabytesLimit: Int32) {
if "".isEmpty {
//TODO:remove debugging
return
}
let generalPaths = self.generalPaths
let totalSizeBasedPath = self.totalSizeBasedPath
let shortLivedPaths = self.shortLivedPaths
@@ -376,7 +381,7 @@ private final class TimeBasedCleanupImpl {
}
var performSizeMapping = true
if totalApproximateSize <= gigabytesLimit {
if totalApproximateSize <= bytesLimit {
performSizeMapping = false
}