processes() bugfix parsing ps linux
This commit is contained in:
parent
9c11792546
commit
4a40e6bea2
@ -230,7 +230,7 @@ function processes(callback) {
|
|||||||
}
|
}
|
||||||
space = head[i] === ' ';
|
space = head[i] === ' ';
|
||||||
} else {
|
} else {
|
||||||
if (/\s/.test(head[i]) && space) {
|
if (!/\s/.test(head[i]) && space) {
|
||||||
to = i - 1;
|
to = i - 1;
|
||||||
if (from < to) {
|
if (from < to) {
|
||||||
result.push({
|
result.push({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user