diskLayout() better interface detection (Windows)
This commit is contained in:
parent
e601cc2910
commit
a41fb7e01a
@ -100,6 +100,7 @@ Other changes
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 3.48.0 | 2018-11-17 | `diskLayout()` better interface detection (WIN), `osInfo()` added build, serial |
|
||||
| 3.47.0 | 2018-11-06 | `versions()` added docker, postfix |
|
||||
| 3.46.0 | 2018-11-05 | fixed issue `versions()`, added system openssl version |
|
||||
| 3.45.10 | 2018-11-03 | fixed issue `battery()`, modified `package.json` - files |
|
||||
|
||||
@ -59,13 +59,13 @@ async function cpu() {
|
||||
|
||||
(last 7 major and minor version releases)
|
||||
|
||||
- Version 3.47.0: `version()` added docker, postfix)
|
||||
- Version 3.48.0: `osInfo()` added build, serial (Windows/macOS)
|
||||
- Version 3.47.0: `version()` added docker, postfix
|
||||
- Version 3.46.0: `version()` added system openssl version (besides the one inside node.js)
|
||||
- Version 3.45.0: `diskLayout()` added S.M.A.R.T. status
|
||||
- Version 3.44.0: `battery()` added type, model, manufacturer, serial, timeremaining
|
||||
- Version 3.43.0: added speed per CPU core `cpuCurrentspeed()`
|
||||
- Version 3.42.0: added parent process PID `processes()`
|
||||
- Version 3.41.0: first partial `SunOS` support
|
||||
- ...
|
||||
|
||||
You can find all changes here: [detailed changelog][changelog-url]
|
||||
|
||||
@ -867,6 +867,7 @@ function diskLayout(callback) {
|
||||
const serialNum = util.getValue(lines, 'SerialNumber', ':').trim();
|
||||
const name = util.getValue(lines, 'FriendlyName', ':').trim();
|
||||
const size = util.getValue(lines, 'Size', ':').trim();
|
||||
const interfaceType = util.getValue(lines, 'BusType', ':').trim();
|
||||
let mediaType = util.getValue(lines, 'MediaType', ':').trim();
|
||||
if (mediaType === '3' || mediaType === 'HDD') { mediaType = 'HD'; }
|
||||
if (mediaType === '4') { mediaType = 'SSD'; }
|
||||
@ -878,6 +879,7 @@ function diskLayout(callback) {
|
||||
}
|
||||
if (i != -1) {
|
||||
result[i].type = mediaType;
|
||||
result[i].interfaceType = interfaceType;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user