processLoad() fix pid (linux)
This commit is contained in:
parent
cc186f6781
commit
80953aa58d
@ -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(',', '.'))
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user