currentLoad() added steal and guest time (linux)

This commit is contained in:
Sebastian Hildebrandt
2023-08-22 16:23:12 +02:00
parent e3dc1bfec5
commit 0701635c28
7 changed files with 53 additions and 7 deletions
+8
View File
@@ -591,12 +591,16 @@ export namespace Systeminformation {
currentLoadNice: number;
currentLoadIdle: number;
currentLoadIrq: number;
currentLoadSteal: number;
currentLoadGuest: number;
rawCurrentLoad: number;
rawCurrentLoadUser: number;
rawCurrentLoadSystem: number;
rawCurrentLoadNice: number;
rawCurrentLoadIdle: number;
rawCurrentLoadIrq: number;
rawCurrentLoadSteal: number;
rawCurrentLoadGuest: number;
cpus: CurrentLoadCpuData[];
}
@@ -607,12 +611,16 @@ export namespace Systeminformation {
loadNice: number;
loadIdle: number;
loadIrq: number;
loadSteal: number;
loadGuest: number;
rawLoad: number;
rawLoadUser: number;
rawLoadSystem: number;
rawLoadNice: number;
rawLoadIdle: number;
rawLoadIrq: number;
rawLoadSteal: number;
rawLoadGuest: number;
}
interface ProcessesData {
+6 -2
View File
@@ -345,6 +345,7 @@ function parseWifiDarwin(wifiObj) {
const signalLevel = wifiItem.RSSI;
let security = [];
let wpaFlags = [];
let ssid = wifiItem.SSID_STR || '';
if (wifiItem.WPA_IE) {
security.push('WPA');
if (wifiItem.WPA_IE.IE_KEY_WPA_UCIPHERS) {
@@ -365,9 +366,12 @@ function parseWifiDarwin(wifiObj) {
});
}
}
// if (wifiItem.SSID) {
// ssid = Buffer.from(wifiItem.SSID, 'base64').toString('utf8');
// }
result.push({
ssid: wifiItem.SSID_STR,
bssid: wifiItem.BSSID,
ssid,
bssid: wifiItem.BSSID || '',
mode: '',
channel: wifiItem.CHANNEL,
frequency: wifiFrequencyFromChannel(wifiItem.CHANNEL),