Skip to content

Commit

Permalink
进程信息采集时子进程名重复问题修复 (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meteriox committed Aug 24, 2023
1 parent b64f50a commit 21fd1b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ami/native/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,9 +675,9 @@ func getChildInsStats(curInsStats map[string]v1.InstanceStats, pid uint32, curPr
if err != nil {
return
}

curInsStats[cc.Name] = v1.InstanceStats{
Name: fmt.Sprintf("%s-%d", cc.Name, cc.Pid),
instName := fmt.Sprintf("%s-%d", cc.Name, cc.Pid)
curInsStats[instName] = v1.InstanceStats{
Name: instName,
ServiceName: mainInsStats.ServiceName,
Usage: usage,
Status: mainInsStats.Status,
Expand Down

0 comments on commit 21fd1b4

Please sign in to comment.