processLoad() fix pid (linux)

This commit is contained in:
Sebastian Hildebrandt 2022-11-17 22:23:32 +01:00
parent cc186f6781
commit 80953aa58d

View File

@ -1142,7 +1142,7 @@ function processLoad(proc, callback) {
procStats.push({
name: data[4].substring(data[4].lastIndexOf('/') + 1),
pid: parseInt(data[0]) || 0,
ppid: parseInt(data[0]) || 0,
ppid: parseInt(data[1]) || 0,
cpu: parseFloat(data[2].replace(',', '.')),
mem: parseFloat(data[3].replace(',', '.'))
});