processLoad() fix pid (linux)

This commit is contained in:
Sebastian Hildebrandt
2022-11-17 22:27:07 +01:00
parent 80953aa58d
commit d38ff54ace
4 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -1169,7 +1169,7 @@ function processLoad(proc, callback) {
if (listPos < 0) {
result.push({
proc: name,
pid: item.ppid < 10 ? item.pid : null,
pid: item.pid,
pids: [item.pid],
cpu: item.cpu,
mem: item.mem