typescript typings fix cpuCurrentSpeed
This commit is contained in:
parent
8bc006f60c
commit
4803bdd206
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 5.0.8 | 2020-01-30 | typescript typings fix cpuCurrentSpeed |
|
||||
| 5.0.7 | 2020-01-29 | `fsSize()` available fixed windows and typescript typings |
|
||||
| 5.0.6 | 2020-01-28 | `osinfo()` added hypervisor (win only) |
|
||||
| 5.0.5 | 2020-01-27 | `networkInterfaces()` type detection improved (win) |
|
||||
|
||||
@ -443,6 +443,7 @@ Full function reference with examples can be found at [https://systeminformation
|
||||
| | [0].type | X | X | X | X | | type of file system |
|
||||
| | [0].size | X | X | X | X | | sizes in bytes |
|
||||
| | [0].used | X | X | X | X | | used in bytes |
|
||||
| | [0].available | X | X | X | X | | used in bytes |
|
||||
| | [0].use | X | X | X | X | | used in % |
|
||||
| | [0].mount | X | X | X | X | | mount point |
|
||||
| si.fsOpenFiles(cb) | {...} | X | X | X | | | count max/allocated file descriptors |
|
||||
|
||||
@ -56,6 +56,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.0.8</th>
|
||||
<td>2020-01-30</td>
|
||||
<td>typescript typings fix cpuCurrentSpeed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.0.7</th>
|
||||
<td>2020-01-29</td>
|
||||
|
||||
@ -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">New Version: <span id="version">5.0.7</span></div>
|
||||
<div class="version">New Version: <span id="version">5.0.8</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">
|
||||
|
||||
2
lib/index.d.ts
vendored
2
lib/index.d.ts
vendored
@ -790,7 +790,7 @@ export function uuid(cb?: (data: Systeminformation.UuidData) => any): Promise<Sy
|
||||
export function cpu(cb?: (data: Systeminformation.CpuData) => any): Promise<Systeminformation.CpuData>;
|
||||
export function cpuFlags(cb?: (data: string) => any): Promise<string>;
|
||||
export function cpuCache(cb?: (data: Systeminformation.CpuCacheData) => any): Promise<Systeminformation.CpuCacheData>;
|
||||
export function cpuCurrentspeed(cb?: (data: Systeminformation.CpuCurrentSpeedData) => any): Promise<Systeminformation.CpuCurrentSpeedData>;
|
||||
export function cpuCurrentSpeed(cb?: (data: Systeminformation.CpuCurrentSpeedData) => any): Promise<Systeminformation.CpuCurrentSpeedData>;
|
||||
export function cpuTemperature(cb?: (data: Systeminformation.CpuTemperatureData) => any): Promise<Systeminformation.CpuTemperatureData>;
|
||||
export function currentLoad(cb?: (data: Systeminformation.CurrentLoadData) => any): Promise<Systeminformation.CurrentLoadData>;
|
||||
export function fullLoad(cb?: (data: number) => any): Promise<number>;
|
||||
|
||||
14
lib/index.js
14
lib/index.js
@ -145,7 +145,7 @@ function getDynamicData(srv, iface, callback) {
|
||||
// use closure to track ƒ completion
|
||||
let functionProcessed = (function () {
|
||||
let totalFunctions = 15;
|
||||
if (_windows) { totalFunctions = 11; }
|
||||
if (_windows) { totalFunctions = 13; }
|
||||
if (_freebsd || _openbsd || _netbsd) { totalFunctions = 11; }
|
||||
if (_sunos) { totalFunctions = 6; }
|
||||
|
||||
@ -191,12 +191,10 @@ function getDynamicData(srv, iface, callback) {
|
||||
functionProcessed();
|
||||
});
|
||||
|
||||
if (!_windows) {
|
||||
processes.processes().then(res => {
|
||||
data.processes = res;
|
||||
functionProcessed();
|
||||
});
|
||||
}
|
||||
processes.processes().then(res => {
|
||||
data.processes = res;
|
||||
functionProcessed();
|
||||
});
|
||||
|
||||
cpu.currentLoad().then(res => {
|
||||
data.currentLoad = res;
|
||||
@ -236,7 +234,7 @@ function getDynamicData(srv, iface, callback) {
|
||||
});
|
||||
}
|
||||
|
||||
if (!_windows && !_sunos) {
|
||||
if (!_sunos) {
|
||||
processes.services(srv).then(res => {
|
||||
data.services = res;
|
||||
functionProcessed();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user