File size: 1,391 Bytes
21fa704 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
type TGpuStatData = {
gpu_utilization: number,
gpu_temperature: number,
vram_total: number,
vram_used: number,
vram_used_percent: number,
}
type TGpuSettings = {
utilization?: boolean,
vram?: boolean,
temperature?: boolean,
}
type TGpuName = {
name: string,
index: number,
}
type TStatsData = {
cpu_utilization: number,
device: string,
gpus: TGpuStatData[],
hdd_total: number,
hdd_used: number,
hdd_used_percent: number,
ram_total: number,
ram_used: number,
ram_used_percent: number,
}
type TStatsSettings = {
rate?: number,
switchCPU?: boolean,
switchGPU?: boolean,
switchHDD?: boolean,
switchRAM?: boolean,
switchVRAM?: boolean,
whichHDD?: string,
}
type TMonitorSettings = {
id: string,
name: string,
category: string[], // for settings location
label: string, // on monitor
symbol: string, // on monitor
monitorTitle?: string, // on monitor
title?: string, // on monitor
tooltip?: string, // on settings
type: 'boolean' | 'number' | 'string' | 'slider' | 'combo',
defaultValue: boolean | number | string,
data?: any,
onChange: (value: boolean | number | string) => Promise<void>,
htmlMonitorRef?: HTMLDivElement,
htmlMonitorSliderRef?: HTMLDivElement,
htmlMonitorLabelRef?: HTMLDivElement,
cssColor: string,
cssColorFinal?: string,
}
|