diff --git a/go.mod b/go.mod index 458cd2e..4aff959 100644 --- a/go.mod +++ b/go.mod @@ -5,6 +5,7 @@ go 1.18 replace ( github.com/TeaOSLab/EdgeCommon => ../EdgeCommon github.com/fsnotify/fsnotify => github.com/iwind/fsnotify v1.5.2-0.20220817040843-193be2051ff4 + rogchap.com/v8go => /Users/Workspace/Projects/v8go ) require ( diff --git a/internal/caches/storage_file.go b/internal/caches/storage_file.go index ae4a8cb..60dc9d9 100644 --- a/internal/caches/storage_file.go +++ b/internal/caches/storage_file.go @@ -954,7 +954,7 @@ func (this *FileStorage) purgeLoop() { this.checkDiskSpace() // 计算是否应该开启LFU清理 - var capacityBytes = this.policy.CapacityBytes() + var capacityBytes = this.diskCapacityBytes() var startLFU = false var lfuFreePercent = this.policy.PersistenceLFUFreePercent if lfuFreePercent <= 0 {