system() uuid lowercase as in uuid()
This commit is contained in:
parent
d5f0fc2f92
commit
94015f37a0
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 4.34.2 | 2020-01-05 | `system()` uuid lowercase as in uuid() |
|
||||
| 4.34.1 | 2020-01-05 | `graphics()` nvidia-smi detection improved |
|
||||
| 4.34.0 | 2020-01-05 | `system()` added flag virtual |
|
||||
| 4.33.8 | 2020-01-04 | `virtualBox()` fix issue windows host |
|
||||
|
||||
@ -83,6 +83,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">4.34.2</th>
|
||||
<td>2020-01-05</td>
|
||||
<td><span class="code">system()</span> uuid now lowercase - as in uuid()</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">4.34.1</th>
|
||||
<td>2020-01-05</td>
|
||||
|
||||
@ -169,7 +169,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.34.1</span></div>
|
||||
<div class="version">Current Version: <span id="version">4.34.2</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">
|
||||
|
||||
@ -51,7 +51,7 @@ function system(callback) {
|
||||
result.model = util.getValue(lines, 'product name');
|
||||
result.version = util.getValue(lines, 'version');
|
||||
result.serial = util.getValue(lines, 'serial number');
|
||||
result.uuid = util.getValue(lines, 'uuid');
|
||||
result.uuid = util.getValue(lines, 'uuid').toLowerCase();
|
||||
result.sku = util.getValue(lines, 'sku number');
|
||||
// }
|
||||
// Non-Root values
|
||||
@ -66,7 +66,7 @@ function system(callback) {
|
||||
result.model = result.model === '' ? util.getValue(lines, 'product_name') : result.model;
|
||||
result.version = result.version === '' ? util.getValue(lines, 'product_version') : result.version;
|
||||
result.serial = result.serial === '' ? util.getValue(lines, 'product_serial') : result.serial;
|
||||
result.uuid = result.uuid === '' ? util.getValue(lines, 'product_uuid') : result.uuid;
|
||||
result.uuid = result.uuid === '' ? util.getValue(lines, 'product_uuid').toLowerCase() : result.uuid;
|
||||
} catch (e) {
|
||||
util.noop();
|
||||
}
|
||||
@ -262,7 +262,7 @@ function system(callback) {
|
||||
result.model = util.getValue(lines, 'model', '=', true);
|
||||
result.version = util.getValue(lines, 'version', '=', true);
|
||||
result.serial = util.getValue(lines, 'ioplatformserialnumber', '=', true);
|
||||
result.uuid = util.getValue(lines, 'ioplatformuuid', '=', true);
|
||||
result.uuid = util.getValue(lines, 'ioplatformuuid', '=', true).toLowerCase();
|
||||
result.sku = util.getValue(lines, 'board-id', '=', true);
|
||||
}
|
||||
if (callback) { callback(result); }
|
||||
@ -283,7 +283,7 @@ function system(callback) {
|
||||
result.model = util.getValue(lines, 'name', '=');
|
||||
result.version = util.getValue(lines, 'version', '=');
|
||||
result.serial = util.getValue(lines, 'identifyingnumber', '=');
|
||||
result.uuid = util.getValue(lines, 'uuid', '=');
|
||||
result.uuid = util.getValue(lines, 'uuid', '=').toLowerCase();
|
||||
// detect virtual (1)
|
||||
if (result.model.toLowerCase() === 'virtualbox' || result.model.toLowerCase() === 'kvm' || result.model.toLowerCase() === 'virtual machine' || result.model.toLowerCase() === 'bochs' || result.model.toLowerCase().startsWith('vmware')) {
|
||||
result.virtual = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user