Optimize Darwin process finder

This commit is contained in:
世界
2026-03-23 18:57:35 +08:00
parent 828c324b18
commit 5eefbbb9ed
4 changed files with 330 additions and 116 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ func FindProcessInfo(searcher Searcher, ctx context.Context, network string, sou
if err != nil {
return nil, err
}
if info.UserId != -1 {
if info.UserId != -1 && info.UserName == "" {
osUser, _ := user.LookupId(F.ToString(info.UserId))
if osUser != nil {
info.UserName = osUser.Username