mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
fix(package): [system] keep the whole command name in GetProcessInfo (#426)
* fix(package): [system] keep the whole command name in GetProcessInfo * test(package): [system] cover a command name with spaces
This commit is contained in:
1 parent
1715d14cc8
commit
b4302b2d15
2 files changed
+20
-1
No files matched your search
+1
-1
@@ -252,7 +252,7 @@ func parseProcessInfo(output []byte, pid int) (*ProcessInfo, error) {
|
||||
Memory: fields[2],
|
||||
State: fields[3],
|
||||
User: fields[4],
|
||||
Cmd: fields[5],
|
||||
Cmd: strings.Join(fields[5:], " "),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user