networkConnections() added PID, process
This commit is contained in:
parent
29203851d0
commit
265d0f208b
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 4.13.0 | 2019-07-01 | `networkConnections()` added PID and process |
|
||||
| 4.12.2 | 2019-06-24 | `system()` added Raspberry PI 4 detection |
|
||||
| 4.12.1 | 2019-06-24 | `networkInterface()` virtual interfaces macos, `networkInterfaceDefault()` |
|
||||
| 4.12.0 | 2019-06-21 | `networkInterface()` added property virtual |
|
||||
|
||||
10
README.md
10
README.md
@ -84,19 +84,13 @@ si.cpu()
|
||||
|
||||
(last 7 major and minor version releases)
|
||||
|
||||
- Version 4.13.0: `networkConnections()` added PID, process
|
||||
- Version 4.12.0: `networkInterfaces()` added property virtual
|
||||
- Version 4.11.0: `wifiNetworks()` added available wifi networks
|
||||
- Version 4.10.0: `graphics()` added windows multiple display support, added display size, connection, ...
|
||||
- Version 4.9.0: `graphics()` added vendor, refresh rate, current resolution
|
||||
- Version 4.8.0: added `vboxInfo()` detailed virtual box info
|
||||
- Version 4.7.0: partial NetBSD support
|
||||
- Version 4.6.0: added `dockerInfo()`
|
||||
- Version 4.5.0: `fsOpenFiles()` added open file descriptor count
|
||||
- Version 4.4.0: `dockerContainers()` added started, finished time
|
||||
- Version 4.3.0: `dockerContainers()` `dockerStats()` added restartCount
|
||||
- Version 4.2.0: `networkInterfaceDefault()` time delay fix (linux)
|
||||
- Version 4.1.0: `versions()` added python3, pip, pip3, java
|
||||
- Version 4.0.0: new version ... read the [detailed changelog][changelog-url] to see all breaking changes
|
||||
- ...
|
||||
|
||||
You can find all changes here: [detailed changelog][changelog-url]
|
||||
@ -453,6 +447,8 @@ I also created a nice little command line tool called [mmon][mmon-github-url] (
|
||||
| | [0].peeraddress | X | X | X | X | | peer address |
|
||||
| | [0].peerport | X | X | X | X | | peer port |
|
||||
| | [0].state | X | X | X | X | | like ESTABLISHED, TIME_WAIT, ... |
|
||||
| | [0].pid | X | X | X | X | | process ID |
|
||||
| | [0].process | X | X | | | | process name |
|
||||
| si.inetChecksite(url, cb) | {...} | X | X | X | X | X | response-time (ms) to fetch given URL |
|
||||
| | url | X | X | X | X | X | given url |
|
||||
| | ok | X | X | X | X | X | status code OK (2xx, 3xx) |
|
||||
|
||||
@ -83,6 +83,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">4.13.0</th>
|
||||
<td>2019-07-01</td>
|
||||
<td><span class="code">networkConnections()</span> added PID, process</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">4.12.2</th>
|
||||
<td>2019-06-24</td>
|
||||
|
||||
@ -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.12.2</span></div>
|
||||
<div class="version">Current Version: <span id="version">4.13.0</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">164</div>
|
||||
<div class="numbers">167</div>
|
||||
<div class="title">Dependends</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -405,6 +405,26 @@
|
||||
<td></td>
|
||||
<td>like ESTABLISHED, TIME_WAIT, ...</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>[0].pid</td>
|
||||
<td>X</td>
|
||||
<td>X</td>
|
||||
<td>X</td>
|
||||
<td>X</td>
|
||||
<td></td>
|
||||
<td>process ID</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>[0].process</td>
|
||||
<td>X</td>
|
||||
<td>X</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>process name</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2>Site availability, Internet Latency</h2>
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user