diff --git a/process/process_linux.go b/process/process_linux.go index abe1645..be0443e 100644 --- a/process/process_linux.go +++ b/process/process_linux.go @@ -450,7 +450,7 @@ func (p *Process) fillFromStatus() error { case "State": // get between "(" and ")" s := strings.Index(value, "(") + 1 - e := strings.Index(value, "(") + 1 + e := strings.Index(value, ")") p.status = value[s:e] case "Uid": p.uids = make([]int32, 0, 4)