mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	优化文字提示
This commit is contained in:
		@@ -663,8 +663,9 @@ func (this *Node) onReload(config *nodeconfigs.NodeConfig) {
 | 
			
		||||
			runtime.GOMAXPROCS(int(config.MaxCPU))
 | 
			
		||||
			remotelogs.Println("NODE", "[CPU]set max cpu to '"+types.String(config.MaxCPU)+"'")
 | 
			
		||||
		} else {
 | 
			
		||||
			runtime.GOMAXPROCS(runtime.NumCPU() * 4)
 | 
			
		||||
			remotelogs.Println("NODE", "[CPU]set max cpu to '"+types.String(runtime.NumCPU())+"'")
 | 
			
		||||
			var threads = runtime.NumCPU() * 4
 | 
			
		||||
			runtime.GOMAXPROCS(threads)
 | 
			
		||||
			remotelogs.Println("NODE", "[CPU]set max cpu to '"+types.String(threads)+"'")
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		this.maxCPU = config.MaxCPU
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user