updated typescript typings, minor fixes
This commit is contained in:
parent
3175da35b5
commit
53693d34a7
@ -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) |
|
||||
|
||||
@ -83,6 +83,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">4.27.7</th>
|
||||
<td>2020-10-05</td>
|
||||
<td>updated typescript typings, minor fixes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">4.27.6</th>
|
||||
<td>2020-10-02</td>
|
||||
|
||||
@ -168,7 +168,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.27.6</span></div>
|
||||
<div class="version">Current Version: <span id="version">4.27.7</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">
|
||||
@ -207,7 +207,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">349</div>
|
||||
<div class="numbers">352</div>
|
||||
<div class="title">Dependends</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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 === '') {
|
||||
|
||||
6
lib/index.d.ts
vendored
6
lib/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user