Skip to content

Commit

Permalink
Merge pull request #3 from sebhildebrandt/master
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
EffectRenan committed Apr 7, 2021
2 parents 16eae0c + 87e7b0c commit 8537f4c
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 12 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -77,6 +77,8 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.

| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 5.6.10 | 2021-03-29 | `vboxInfo()` fixed windows bug |
| 5.6.9 | 2021-03-28 | `graphics()` fixed nvidia-smi compare bug |
| 5.6.8 | 2021-03-22 | typescript definitions fix `wifiInterfces()`, `wifiConnections()` |
| 5.6.7 | 2021-03-16 | `inetLatency()` `ineChecksite()` schema validation |
| 5.6.6 | 2021-03-16 | code refactoring |
Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -360,9 +360,9 @@ Full function reference with examples can be found at [https://systeminformation
| si.fullLoad(cb) | : integer | X | | X | X | | CPU full load since bootup in % |
| si.processes(cb) | {...} | X | X | X | X | X | # running processes |
| | all | X | X | X | X | X | # of all processes |
| | running | X | X | X | X | X | # of all processes running |
| | blocked | X | X | X | X | X | # of all processes blocked |
| | sleeping | X | X | X | X | X | # of all processes sleeping |
| | running | X | X | X | | X | # of all processes running |
| | blocked | X | X | X | | X | # of all processes blocked |
| | sleeping | X | X | X | | X | # of all processes sleeping |
| | unknown | | | | X | | # of all processes unknown status |
| | list[] | X | X | X | X | X | list of all processes incl. details |
| | ...[0].pid | X | X | X | X | X | process PID |
Expand Down
10 changes: 10 additions & 0 deletions docs/history.html
Expand Up @@ -56,6 +56,16 @@ <h3>Full version history</h3>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.6.10</th>
<td>2021-03-29</td>
<td><span class="code">vboxInfo()</span> fixed windows bug</td>
</tr>
<tr>
<th scope="row">5.6.9</th>
<td>2021-03-28</td>
<td><span class="code">graphics()</span> fixed nvidia-smi compare bug</td>
</tr>
<tr>
<th scope="row">5.6.8</th>
<td>2021-03-23</td>
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Expand Up @@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.6.8</span></div>
<div class="version">New Version: <span id="version">5.6.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">
Expand Down Expand Up @@ -211,7 +211,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">402</div>
<div class="numbers">407</div>
<div class="title">Dependents</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/processes.html
Expand Up @@ -242,7 +242,7 @@ <h5>Example</h5>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td></td>
<td>X</td>
<td># of all processes running</td>
</tr>
Expand All @@ -252,7 +252,7 @@ <h5>Example</h5>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td></td>
<td>X</td>
<td># of all processes blocked</td>
</tr>
Expand All @@ -262,7 +262,7 @@ <h5>Example</h5>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td></td>
<td>X</td>
<td># of all processes sleeping</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/security.html
Expand Up @@ -52,7 +52,7 @@ <h2>Command Injection Vulnerability</h2>
<p><span class="bold">Affected versions:</span>
&lt; 5.6.4 and &lt; 4.34.17<br>
<span class="bold">Date:</span> 2021-03-15<br>
<span class="bold">CVE indentifier</span> -
<span class="bold">CVE indentifier</span> CVE-2021-21388
</p>

<h4>Impact</h4>
Expand Down
2 changes: 1 addition & 1 deletion lib/graphics.js
Expand Up @@ -728,7 +728,7 @@ function graphics(callback) {
const nvidiaData = nvidiaDevices();
// needs to be rewritten ... using no spread operators
result.controllers = result.controllers.map((controller) => { // match by busAddress
return mergeControllerNvidia(controller, nvidiaData.find(({ pciBus }) => pciBus.endsWith(controller.busAddress)) || {});
return mergeControllerNvidia(controller, nvidiaData.find(({ pciBus }) => pciBus.toLowerCase().endsWith(controller.busAddress.toLowerCase())) || {});
});
}
let cmd = 'clinfo --raw';
Expand Down
2 changes: 1 addition & 1 deletion lib/util.js
Expand Up @@ -333,7 +333,7 @@ function wmic(command, options) {
}

function getVboxmanage() {
return _windows ? `${process.env.VBOX_INSTALL_PATH || process.env.VBOX_MSI_INSTALL_PATH}\\VBoxManage.exe` : 'vboxmanage';
return _windows ? `"${process.env.VBOX_INSTALL_PATH || process.env.VBOX_MSI_INSTALL_PATH}\\VBoxManage.exe"` : 'vboxmanage';
}

function powerShell(cmd) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "systeminformation",
"version": "5.6.8",
"version": "5.6.10",
"description": "Simple system and OS information library",
"license": "MIT",
"author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",
Expand Down

0 comments on commit 8537f4c

Please sign in to comment.