vboxInfo() fixed call parameters

This commit is contained in:
Sebastian Hildebrandt 2019-06-03 14:57:55 +02:00
parent dd9a9bcd63
commit 5cff72b0d0
6 changed files with 10 additions and 10 deletions

View File

@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 4.8.4 | 2019-06-03 | `vboxInfo()` afixed call parameters |
| 4.8.3 | 2019-06-01 | `vboxInfo()` added stoppedSince, started, stopped |
| 4.8.2 | 2019-05-31 | `dockerInfo()` changed property naming style |
| 4.8.1 | 2019-05-31 | updated docs |

View File

@ -559,7 +559,7 @@ I also created a nice little command line tool called [mmon][mmon-github-url] (
| | [0].runningSince | X | X | X | X | X | running since (secs) |
| | [0].stopped | X | X | X | X | X | stopped date time |
| | [0].stoppedSince | X | X | X | X | X | stopped since (secs) |
| | [0].guestOS | X | X | X | X | X | Guest OK |
| | [0].guestOS | X | X | X | X | X | Guest OS |
| | [0].hardwareUUID | X | X | X | X | X | Hardware UUID |
| | [0].memory | X | X | X | X | X | Memory in MB |
| | [0].vram | X | X | X | X | X | VRAM in MB |

View File

@ -80,6 +80,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">4.8.3</th>
<td>2019-06-03</td>
<td><span class="code">vboxInfo()</span> fixed call parameters</td>
</tr>
<tr>
<th scope="row">4.8.3</th>
<td>2019-05-31</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.8.3</span></div>
<div class="version">Current Version: <span id="version">4.8.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">

View File

@ -153,7 +153,7 @@
<td>X</td>
<td>X</td>
<td>X</td>
<td>Guest OK</td>
<td>Guest OS</td>
</tr>
<tr>
<td></td>

View File

@ -17,15 +17,9 @@ const os = require('os');
const exec = require('child_process').exec;
const util = require('./util');
function vboxInfo(all, callback) {
function vboxInfo(callback) {
// fallback - if only callback is given
if (util.isFunction(all) && !callback) {
callback = all;
all = false;
}
all = all || false;
let result = [];
return new Promise((resolve) => {
process.nextTick(() => {