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