graphics() updated docs

This commit is contained in:
Sebastian Hildebrandt
2020-12-27 13:25:08 +01:00
parent 66aa3c77d8
commit 188b27340b
6 changed files with 25 additions and 3 deletions
+1 -1
View File
@@ -401,7 +401,7 @@ function graphics(callback) {
const nvidiaSmiExe = getNvidiaSmi();
if (nvidiaSmiExe) {
const nvidiaSmiOpts = '--query-gpu=driver_version,pci.sub_device_id,name,pci.bus_id,fan.speed,memory.total,memory.used,memory.free,utilization.gpu,utilization.memory,temperature.gpu,temperature.memory,power.draw,power.limit,clocks.gr,clocks.mem --format=csv,noheader,nounits'
const cmd = nvidiaSmiExe + ' ' + nvidiaSmiOpts + _linux ? ' 2>/dev/null' : '';
const cmd = nvidiaSmiExe + ' ' + nvidiaSmiOpts + (_linux ? ' 2>/dev/null' : '');
try {
const res = execSync(cmd, options).toString();
return res;
+16
View File
@@ -258,6 +258,22 @@ export namespace Systeminformation {
vram: number;
vramDynamic: boolean;
subDeviceId?: string;
driverVersion?: string;
subDeviceId?: string;
name?: string;
pciBus?: string;
fanSpeed?: number;
memoryTotal?: number;
memoryUsed?: number;
memoryFree?: number;
utilizationGpu?: number;
utilizationMemory?: number;
temperatureGpu?: number;
temperatureMemory?: number;
powerDraw?: number;
powerLimit?: number;
clockCore?: number;
clockMemory?: number;
}
interface GraphicsDisplayData {