networkInterfaces() type detection improved (win)
This commit is contained in:
parent
aa3f1a3815
commit
22d35b2dee
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 5.0.5 | 2020-01-27 | `networkInterfaces()` type detection improved (win) |
|
||||
| 5.0.4 | 2020-01-27 | `cpu()` improved manufacturer decoding (linux) |
|
||||
| 5.0.3 | 2020-01-27 | `cpu()` fix virtualization, `wifi()` fix raspberry |
|
||||
| 5.0.2 | 2020-01-26 | updated typescript typings |
|
||||
|
||||
@ -169,16 +169,18 @@
|
||||
<li><span class="code">cpu()</span>: extended socket list (win)</li>
|
||||
<li><span class="code">cpu()</span>: added <span class="code">virtualization</span> if cpu supports virtualization</li>
|
||||
<li><span class="code">cpu()</span>: now <span class="code">flags</span> are part of this function</li>
|
||||
<li><span class="code">graphics()</span>: extended nvidia-smi parsing</li>
|
||||
<li><span class="code">system()</span>: better Raspberry PI detection</li>
|
||||
<li><span class="code">system()</span>: added <span class="code">virtual</span> and <span class="code">virtualHost</span> (if system is virtual instance)</li>
|
||||
<li><span class="code">fsSize()</span>: added <span class="code">available</span></li>
|
||||
<li><span class="code">fsSize()</span>: improved calculation of <span class="code">used</span></li>
|
||||
<li><span class="code">getData()</span>: support for passing parameters and filters (see <a href="general.html">section General / getData</a>)</li>
|
||||
<li><span class="code">graphics()</span>: extended nvidia-smi parsing</li>
|
||||
<li><span class="code">networkInterfaces()</span>: type detection improved (win - wireless)</li>
|
||||
<li><span class="code">memoryLayout()</span>: extended manufacturer list (decoding)</li>
|
||||
<li><span class="code">osInfo()</span>: better fqdn (win)</li>
|
||||
<li><span class="code">system()</span>: better Raspberry PI detection</li>
|
||||
<li><span class="code">system()</span>: added <span class="code">virtual</span> and <span class="code">virtualHost</span> (if system is virtual instance)</li>
|
||||
<li><span class="code">uuid()</span>: better value support</li>
|
||||
<li><span class="code">uuid()</span>: added MACs</li>
|
||||
<li><span class="code">uuid()</span>: better Raspberry Pi hardware ID</li>
|
||||
<li><span class="code">getData()</span>: support for passing parameters and filters (see <a href="general.html">section General / getData</a>)</li>
|
||||
<li><span class="code">Apple M1 Silicon</span> extended support (now everything supported except of cpu temperature)</li>
|
||||
<li>updated TypeScript definitions </li>
|
||||
</ul>
|
||||
|
||||
@ -56,12 +56,16 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.0.5</th>
|
||||
<td>2020-01-27</td>
|
||||
<td><span class="code">networkInterfaces()</span> type detection improved (win)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.0.4</th>
|
||||
<td>2020-01-27</td>
|
||||
<td><span class="code">memoryLayout()</span> improved manufacturer decoding (linux)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<th scope="row">5.0.3</th>
|
||||
<td>2020-01-27</td>
|
||||
|
||||
@ -170,7 +170,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span> </div>
|
||||
<div class="version">New Version: <span id="version">5.0.4</span></div>
|
||||
<div class="version">New Version: <span id="version">5.0.5</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">
|
||||
@ -209,7 +209,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">376</div>
|
||||
<div class="numbers">377</div>
|
||||
<div class="title">Dependents</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -219,17 +219,21 @@ function parseLinesWindowsNics(sections, nconfigsections) {
|
||||
let lines = sections[i].trim().split('\r\n');
|
||||
let linesNicConfig = nconfigsections[i].trim().split('\r\n');
|
||||
let netEnabled = util.getValue(lines, 'NetEnabled', '=');
|
||||
|
||||
let adapterType = util.getValue(lines, 'AdapterTypeID', '=') === '9' ? 'wireless' : 'wired';
|
||||
let ifacename = util.getValue(lines, 'Name', '=').replace(/\]/g, ')').replace(/\[/g, '(');
|
||||
if (ifacename.toLowerCase().indexOf('wi-fi') >= 0 || ifacename.toLowerCase().indexOf('wireless') >= 0) {
|
||||
adapterType = 'wireless';
|
||||
}
|
||||
if (netEnabled !== '') {
|
||||
const speed = parseInt(util.getValue(lines, 'speed', '=').trim(), 10) / 1000000;
|
||||
nics.push({
|
||||
mac: util.getValue(lines, 'MACAddress', '=').toLowerCase(),
|
||||
dhcp: util.getValue(linesNicConfig, 'dhcpEnabled', '=').toLowerCase(),
|
||||
name: util.getValue(lines, 'Name', '=').replace(/\]/g, ')').replace(/\[/g, '('),
|
||||
name: ifacename,
|
||||
netEnabled: netEnabled === 'TRUE',
|
||||
speed: isNaN(speed) ? null : speed,
|
||||
operstate: util.getValue(lines, 'NetConnectionStatus', '=') === '2' ? 'up' : 'down',
|
||||
type: util.getValue(lines, 'AdapterTypeID', '=') === '9' ? 'wireless' : 'wired'
|
||||
type: adapterType
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user