process: fix process status parsing.

This commit is contained in:
Shirou WAKAYAMA 2015-03-06 12:07:05 +09:00
parent 9d38e5c995
commit e39f17afd7
1 changed files with 1 additions and 1 deletions

View File

@ -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)