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