master
兔子 4 years ago
parent 6de9af62cc
commit cdf3a18981

@ -128,11 +128,11 @@ func FindProcessByPid(pid int64) (datas Process, err error) {
}
name, err = readAsString("/proc/" + fmt.Sprint(pid) + "/comm")
if err != nil {
return err
return
}
main, err = readAsString("/proc/" + fmt.Sprint(pid) + "/status")
if err != nil {
return err
return
}
data := splitBy(main, ":")
datas.Name = strings.TrimSpace(name)

Loading…
Cancel
Save