networkStats() bug fix windows
This commit is contained in:
parent
1e60240efe
commit
a32858989e
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 4.9.1 | 2019-06-11 | `networkStats()` bug fix windows |
|
||||
| 4.9.0 | 2019-06-03 | `graphics()` added vendor, refresh rate, current res |
|
||||
| 4.8.4 | 2019-06-03 | `vboxInfo()` fixed call parameters |
|
||||
| 4.8.3 | 2019-06-01 | `vboxInfo()` added stoppedSince, started, stopped |
|
||||
|
||||
@ -80,6 +80,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">4.9.0</th>
|
||||
<td>2019-06-03</td>
|
||||
<td><span class="code">networkStats()</span> bugfix windows</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">4.9.0</th>
|
||||
<td>2019-06-03</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.9.0</span></div>
|
||||
<div class="version">Current Version: <span id="version">4.9.1</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">160</div>
|
||||
<div class="numbers">161</div>
|
||||
<div class="title">Dependends</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -665,7 +665,12 @@ function networkStatsSingle(iface) {
|
||||
tx_bytes = 0;
|
||||
perfData.forEach(detail => {
|
||||
interfaces.forEach(det => {
|
||||
if ((det.iface.toLowerCase() === iface.toLowerCase() || det.mac.toLowerCase() === iface.toLowerCase() || det.ip4.toLowerCase() === iface.toLowerCase() || det.ip6.toLowerCase() === iface.toLowerCase() || det.ifaceName.replace(/[()\[\] ]+/g, '').toLowerCase() === iface.replace(/[()\[\] ]+/g, '').toLowerCase()) && det.ifaceName.replace(/[()\[\] ]+/g, '').toLowerCase() === detail.name) {
|
||||
if ((det.iface.toLowerCase() === iface.toLowerCase() ||
|
||||
det.mac.toLowerCase() === iface.toLowerCase() ||
|
||||
det.ip4.toLowerCase() === iface.toLowerCase() ||
|
||||
det.ip6.toLowerCase() === iface.toLowerCase() ||
|
||||
(det.ifaceName.replace(/[()\[\] ]+/g, '').toLowerCase() === iface.replace(/[()\[\] ]+/g, '').toLowerCase()) &&
|
||||
det.ifaceName.replace(/[()\[\] ]+/g, '').toLowerCase() === detail.name)) {
|
||||
ifaceName = det.iface;
|
||||
rx_bytes = detail.rx_bytes;
|
||||
rx_dropped = detail.rx_dropped;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user