diff --git a/CHANGELOG.md b/CHANGELOG.md index 2714b38..d671b81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 4.27.7 | 2020-10-05 | updated typescript typings, minor fixes | | 4.27.6 | 2020-10-02 | `get()` fixed when results are in arrays | | 4.27.5 | 2020-09-18 | `cpuTemperature()` fix try catch (linux) | | 4.27.4 | 2020-09-16 | `networkInterfaceDefault()` optimization (macOS) | diff --git a/docs/history.html b/docs/history.html index 2de30e9..5a35483 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.27.7 + 2020-10-05 + updated typescript typings, minor fixes + 4.27.6 2020-10-02 diff --git a/docs/index.html b/docs/index.html index b44c512..34734a0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -168,7 +168,7 @@
systeminformation
-
Current Version: 4.27.6
+
Current Version: 4.27.7
@@ -207,7 +207,7 @@
Downloads last month
-
349
+
352
Dependends
diff --git a/lib/cpu.js b/lib/cpu.js index b4b94a2..baa87ea 100644 --- a/lib/cpu.js +++ b/lib/cpu.js @@ -484,6 +484,7 @@ function getCpu() { if (result.cache.l3) { result.cache.l3 = parseInt(result.cache.l3) * (result.cache.l3.indexOf('K') !== -1 ? 1024 : 1); } const threadsPerCore = util.getValue(lines, 'thread(s) per core') || '1'; + const coresPerSocketInt = parseInt(util.getValue(lines, 'cores(s) per socket') || '0', 10); const processors = util.getValue(lines, 'socket(s)') || '1'; let threadsPerCoreInt = parseInt(threadsPerCore, 10); let processorsInt = parseInt(processors, 10); diff --git a/lib/filesystem.js b/lib/filesystem.js index e67284d..c5a886c 100755 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -1041,7 +1041,7 @@ function diskLayout(callback) { if (mediaType === '3' || mediaType === 'HDD') { mediaType = 'HD'; } if (mediaType === '4') { mediaType = 'SSD'; } if (mediaType === '5') { mediaType = 'SCM'; } - if (mediaType === 'Unspecified' && model.toLowerCase().indexOf('virtual') > -1) { mediaType = 'Virtual'; } + if (mediaType === 'Unspecified' && (model.toLowerCase().indexOf('virtual') > -1 || model.toLowerCase().indexOf('vbox') > -1)) { mediaType = 'Virtual'; } if (size) { let i = util.findObjectByKey(result, 'serialNum', serialNum); if (i === -1 || serialNum === '') { diff --git a/lib/index.d.ts b/lib/index.d.ts index 8ce2701..68118b3 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -365,9 +365,9 @@ export namespace Systeminformation { } interface FsStatsData { - rx_bytes: number; - wx_bytes: number; - tx_bytes: number; + rx: number; + wx: number; + tx: number; rx_sec: number; wx_sec: number; tx_sec: number;