Clean: use go 1.19 Appendf
This commit is contained in:
parent
08f414e9c7
commit
5845420649
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ func resolveProcessNameByProcSearch(inode, uid int32) (string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer := make([]byte, syscall.PathMax)
|
buffer := make([]byte, syscall.PathMax)
|
||||||
socket := []byte(fmt.Sprintf("socket:[%d]", inode))
|
socket := fmt.Appendf(nil, "socket:[%d]", inode)
|
||||||
|
|
||||||
for _, f := range files {
|
for _, f := range files {
|
||||||
if !f.IsDir() || !isPid(f.Name()) {
|
if !f.IsDir() || !isPid(f.Name()) {
|
||||||
|
|
Loading…
Reference in a new issue