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];
     });