networkConnections() pid fix NAN

This commit is contained in:
Sebastian Hildebrandt 2019-07-07 10:33:47 +02:00
parent f380bf5fb2
commit 58f376d40d
4 changed files with 9 additions and 3 deletions

View File

@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 4.14.2 | 2019-07-07 | `networkConnections()` pid linux fix NAN |
| 4.14.1 | 2019-07-04 | `graphics()` added display position windows |
| 4.14.0 | 2019-07-03 | `processes()` added process path and params |
| 4.13.2 | 2019-07-02 | `versions()` fix getting all versions |

View File

@ -83,6 +83,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">4.14.2</th>
<td>2019-07-07</td>
<td><span class="code">networkConnections()</span> pid linux fix NAN</td>
</tr>
<tr>
<th scope="row">4.14.1</th>
<td>2019-07-04</td>

View File

@ -168,7 +168,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span></div>
<div class="version">Current Version: <span id="version">4.14.1</span></div>
<div class="version">Current Version: <span id="version">4.14.2</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">
@ -199,7 +199,7 @@
<div class="title">Downloads last month</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
<div class="numbers">167</div>
<div class="numbers">166</div>
<div class="title">Dependends</div>
</div>
</div>

View File

@ -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] : ''
});
}