networkConnections() pid fix NAN
This commit is contained in:
+1
-1
@@ -814,7 +814,7 @@ function networkConnections(callback) {
|
||||
peeraddress: peerip,
|
||||
peerport: peerport,
|
||||
state: connstate,
|
||||
pid: proc[0] ? parseInt(proc[0], 10) : -1,
|
||||
pid: proc[0] && proc[0] !== '-' ? parseInt(proc[0], 10) : -1,
|
||||
process: proc[1] ? proc[1].split(' ')[0] : ''
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user