dockerContainers() resolved hanging issue

This commit is contained in:
Sebastian Hildebrandt 2020-10-16 10:29:26 +02:00
parent 0eac590f12
commit 6e60c1d2e8
5 changed files with 13 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.27.10 | 2020-10-16 | `dockerContainers()` resolved hanging issue |
| 4.27.9 | 2020-10-13 | `networkInterfaces()` loopback internal detection (windows) |
| 4.27.8 | 2020-10-08 | windows codepages partial fix |
| 4.27.7 | 2020-10-05 | updated typescript typings, minor fixes |

View File

@ -83,6 +83,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">4.27.10</th>
<td>2020-10-16</td>
<td><span class="code">dockerContainers()</span> resolved hanging issue</td>
</tr>
<tr>
<th scope="row">4.27.9</th>
<td>2020-10-13</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.27.9</span></div>
<div class="version">Current Version: <span id="version">4.27.10</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">
@ -207,7 +207,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">352</div>
<div class="numbers">356</div>
<div class="title">Dependends</div>
</div>
</div>

View File

@ -162,6 +162,9 @@ function dockerContainers(all, callback) {
if (callback) { callback(result); }
resolve(result);
}
} else {
if (callback) { callback(result); }
resolve(result);
}
} catch (err) {
// GC in _docker_container_stats

View File

@ -745,7 +745,8 @@ function networkInterfaces(callback, rescan = true) {
_ifaces = Object.assign({}, ifaces);
if (_windows) {
getWindowsNics().forEach(nic => {
nics = getWindowsNics();
nics.forEach(nic => {
let found = false;
Object.keys(ifaces).forEach(key => {
if (!found) {
@ -763,7 +764,6 @@ function networkInterfaces(callback, rescan = true) {
});
nics8021xInfo = getWindowsWiredProfilesInformation();
nics = getWindowsNics();
dnsSuffixes = getWindowsDNSsuffixes();
}
if (_linux) {