Commit a49df86e authored by szh's avatar szh

trim first space

parent c268da12
......@@ -600,7 +600,8 @@ func getPaiProcessInfo() (*PaiProcessInfo,error) {
tlog.Error("getPaiProcessInfo cmd","err",err)
return nil,err
}
list := strings.Split(buf.String()," ")
trimBuf := strings.Trim(buf.String()," ")
list := strings.Split(trimBuf," ")
if len(list) < 7 {
return nil, errors.New("ps return exception")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment