Skip to content

Commit

Permalink
fix: 兼容1.18go版本编译
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyiguang committed Mar 13, 2023
1 parent 5c313e4 commit 98e8f7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion component/process/process_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ func resolveProcessNameByProcSearch(inode, uid uint32) (string, error) {
}

buffer := make([]byte, unix.PathMax)
socket := fmt.Appendf(nil, "socket:[%d]", inode)
//socket := fmt.Appendf(nil, "socket:[%d]", inode)
socket := []byte(fmt.Sprintf("socket:[%d]", inode))

for _, f := range files {
if !f.IsDir() || !isPid(f.Name()) {
Expand Down

0 comments on commit 98e8f7f

Please sign in to comment.