mirror of
https://github.com/DominicBreuker/pspy.git
synced 2025-12-21 11:44:51 +00:00
add specs for process scanner
This commit is contained in:
@@ -64,7 +64,7 @@ func getPIDs() ([]int, error) {
|
||||
if f.IsDir() {
|
||||
name := f.Name()
|
||||
pid, err := strconv.Atoi(name)
|
||||
if err != nil {
|
||||
if err != nil || pid <= 0 {
|
||||
continue // not a pid
|
||||
}
|
||||
pids = append(pids, pid)
|
||||
|
||||
Reference in New Issue
Block a user