mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	修复节点设置的“缓存磁盘容量”不起作用的问题
This commit is contained in:
		
							
								
								
									
										1
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								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 (
 | 
			
		||||
 
 | 
			
		||||
@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user