fixed typo
This commit is contained in:
parent
e175d0ac8a
commit
7b339a5a74
@ -367,7 +367,7 @@ function decodeMdabmData(lines) {
|
||||
};
|
||||
}
|
||||
|
||||
function raidMatchLunix(data) {
|
||||
function raidMatchLinux(data) {
|
||||
// for all block devices of type "raid%"
|
||||
let result = data;
|
||||
try {
|
||||
@ -423,7 +423,7 @@ function blockDevices(callback) {
|
||||
if (!error) {
|
||||
let lines = blkStdoutToObject(stdout).split('\n');
|
||||
data = parseBlk(lines);
|
||||
data = raidMatchLunix(data);
|
||||
data = raidMatchLinux(data);
|
||||
if (callback) {
|
||||
callback(data);
|
||||
}
|
||||
@ -433,7 +433,7 @@ function blockDevices(callback) {
|
||||
if (!error) {
|
||||
let lines = blkStdoutToObject(stdout).split('\n');
|
||||
data = parseBlk(lines);
|
||||
data = raidMatchLunix(data);
|
||||
data = raidMatchLinux(data);
|
||||
}
|
||||
if (callback) {
|
||||
callback(data);
|
||||
|
||||
25
lib/index.d.ts
vendored
25
lib/index.d.ts
vendored
@ -915,6 +915,27 @@ export namespace Systeminformation {
|
||||
memLayout: MemLayoutData[];
|
||||
diskLayout: DiskLayoutData[];
|
||||
}
|
||||
|
||||
interface DynamicData {
|
||||
time: TimeData;
|
||||
node: string;
|
||||
v8: string;
|
||||
cpuCurrentSpeed: CpuCurrentSpeedData;
|
||||
users: UserData[];
|
||||
processes: ProcessesData;
|
||||
currentLoad: CurrentLoadData;
|
||||
cpuTemperature: CpuTemperatureData;
|
||||
networkStats: NetworkStatsData;
|
||||
networkConnections: NetworkConnectionsData;
|
||||
mem: MemData;
|
||||
battery: BatteryData;
|
||||
services: ServicesData;
|
||||
fsSize: FsSizeData;
|
||||
fsStats: FsStatsData;
|
||||
disksIO: DisksIoData;
|
||||
wifiNetworks: WifiNetworkData;
|
||||
inetLatency: number;
|
||||
}
|
||||
}
|
||||
|
||||
export function version(): string;
|
||||
@ -988,8 +1009,8 @@ export function audio(cb?: (data: Systeminformation.AudioData[]) => any): Promis
|
||||
export function bluetoothDevices(cb?: (data: Systeminformation.BluetoothDeviceData[]) => any): Promise<Systeminformation.BluetoothDeviceData[]>;
|
||||
|
||||
export function getStaticData(cb?: (data: Systeminformation.StaticData) => any): Promise<Systeminformation.StaticData>;
|
||||
export function getDynamicData(srv?: string, iface?: string, cb?: (data: any) => any): Promise<any>;
|
||||
export function getAllData(srv?: string, iface?: string, cb?: (data: any) => any): Promise<any>;
|
||||
export function getDynamicData(srv?: string, iface?: string, cb?: (data: any) => any): Promise<ysteminformation.DynamicData>;
|
||||
export function getAllData(srv?: string, iface?: string, cb?: (data: any) => any): Promise<Systeminformation.StaticData & Systeminformation.DynamicData>;
|
||||
export function get(valuesObject: any, cb?: (data: any) => any): Promise<any>;
|
||||
export function observe(valuesObject: any, interval: number, cb?: (data: any) => any): number;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user