processes() fix command line parsing (win) wip
This commit is contained in:
parent
1512eabec1
commit
f6acf2e30e
@ -949,7 +949,6 @@ function processes(callback) {
|
|||||||
processArray = JSON.parse(stdout);
|
processArray = JSON.parse(stdout);
|
||||||
} catch {}
|
} catch {}
|
||||||
processArray.forEach((element) => {
|
processArray.forEach((element) => {
|
||||||
if (element.trim() !== '') {
|
|
||||||
const pid = element.ProcessId;
|
const pid = element.ProcessId;
|
||||||
const parentPid = element.ParentProcessId;
|
const parentPid = element.ParentProcessId;
|
||||||
const statusValue = element.ExecutionState || null;
|
const statusValue = element.ExecutionState || null;
|
||||||
@ -1001,7 +1000,6 @@ function processes(callback) {
|
|||||||
path: commandPath,
|
path: commandPath,
|
||||||
params: ''
|
params: ''
|
||||||
});
|
});
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
result.sleeping = result.all - result.running - result.blocked - result.unknown;
|
result.sleeping = result.all - result.running - result.blocked - result.unknown;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user