graphics() improved vendor, model parsing (linux), memLayout() DDR5 detection (windows)
This commit is contained in:
+4
-3
@@ -204,6 +204,7 @@ function graphics(callback) {
|
||||
let controllers = [];
|
||||
let currentController = {
|
||||
vendor: '',
|
||||
subvendor: '',
|
||||
model: '',
|
||||
bus: '',
|
||||
busAddress: '',
|
||||
@@ -292,9 +293,9 @@ function graphics(callback) {
|
||||
}
|
||||
}
|
||||
if (currentController.model && subsystem.indexOf(currentController.model) !== -1) {
|
||||
const vendor2 = subsystem.split(currentController.model)[0].trim();
|
||||
if (vendor2) {
|
||||
currentController.vendor += ', ' + vendor2;
|
||||
const subvendor = subsystem.split(currentController.model)[0].trim();
|
||||
if (subvendor) {
|
||||
currentController.subvendor = subvendor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
@@ -306,6 +306,7 @@ export namespace Systeminformation {
|
||||
|
||||
interface GraphicsControllerData {
|
||||
vendor: string;
|
||||
subvendor?: string;
|
||||
vendorId?: string;
|
||||
model: string;
|
||||
deviceId?: string;
|
||||
|
||||
Reference in New Issue
Block a user