mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-05 16:50:35 +08:00
优化代码/CPU监控信息增加CPU逻辑核数
This commit is contained in:
@@ -148,6 +148,7 @@ func (this *NodeStatusExecutor) updateCPU(status *nodeconfigs.NodeStatus) {
|
||||
// 记录监控数据
|
||||
monitor.SharedValueQueue.Add(nodeconfigs.NodeValueItemCPU, maps.Map{
|
||||
"usage": status.CPUUsage,
|
||||
"cores": runtime.NumCPU(),
|
||||
})
|
||||
|
||||
if this.cpuLogicalCount == 0 && this.cpuPhysicalCount == 0 {
|
||||
|
||||
Reference in New Issue
Block a user