networkConnections() added PID, process
This commit is contained in:
+1
-1
@@ -855,7 +855,7 @@ function networkConnections(callback) {
|
||||
let pid = -1;
|
||||
let process = '';
|
||||
if (line.length >= 7 && line[6].indexOf('users:') > -1) {
|
||||
let proc = line[6].replace('users:(("', '').replace('"', '').split(',');
|
||||
let proc = line[6].replace('users:(("', '').replace(/"/g, '').split(',');
|
||||
if (proc.length > 2) {
|
||||
process = proc[0].split(' ')[0];
|
||||
pid = parseInt(proc[1], 10);
|
||||
|
||||
Reference in New Issue
Block a user