ibireme 9 роки тому
батько
коміт
3f4621c3a0
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      YYCache/YYMemoryCache.m

+ 1 - 1
YYCache/YYMemoryCache.m

@@ -202,7 +202,7 @@ static inline dispatch_queue_t YYMemoryCacheGetReleaseQueue() {
 
 - (void)_trimInBackground {
     dispatch_async(_queue, ^{
-        [self _trimToCost:self->_countLimit];
+        [self _trimToCost:self->_costLimit];
         [self _trimToCount:self->_countLimit];
         [self _trimToAge:self->_ageLimit];
     });