networkInterfaces() speed bug (windows)

This commit is contained in:
Sebastian Hildebrandt 2019-03-26 21:43:56 +01:00
parent aa60c122b2
commit dea549d0ff
4 changed files with 10 additions and 4 deletions

View File

@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 4.1.4 | 2019-03-26 | `networkInterfaces()` speed bug (windows) |
| 4.1.3 | 2019-03-24 | wmic path detection (windows) |
| 4.1.2 | 2019-03-23 | updated docs |
| 4.1.1 | 2019-03-13 | updated typescript typings |

View File

@ -80,6 +80,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">4.1.4</th>
<td>2019-03-26</td>
<td><span class="code">networkInterfaces()</span> speed bug (windows)</td>
</tr>
<tr>
<th scope="row">4.1.3</th>
<td>2019-03-24</td>

View File

@ -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">Current Version: <span id="version">4.1.3</span></div>
<div class="version">Current Version: <span id="version">4.1.4</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">
@ -193,7 +193,7 @@
</div>
<div class="row number-section">
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
<div class="numbers">8,215</div>
<div class="numbers">8,219</div>
<div class="title">Lines of code</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
@ -201,7 +201,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">141</div>
<div class="numbers">146</div>
<div class="title">Dependends</div>
</div>
</div>

View File

@ -163,7 +163,7 @@ function parseLinesWindowsNics(sections) {
let lines = sections[i].trim().split('\r\n');
let netEnabled = util.getValue(lines, 'NetEnabled', '=');
if (netEnabled) {
const speed = parseInt(util.getValue(lines, 'speed', '=').trim(), 10);
const speed = parseInt(util.getValue(lines, 'speed', '=').trim(), 10) / 1000000;
nics.push({
mac: util.getValue(lines, 'MACAddress', '=').toLowerCase(),
name: util.getValue(lines, 'Name', '=').replace(/\]/g, ')').replace(/\[/g, '('),