Skip to content

Commit

Permalink
进程信息采集时子进程名重复问题修复 (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meteriox committed Aug 24, 2023
1 parent a680c89 commit b64f50a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ami/native/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ func getChildInsStats(curInsStats map[string]v1.InstanceStats, pid uint32, curPr
}

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

0 comments on commit b64f50a

Please sign in to comment.