nvidia: improve component mapping, firmware, statuses and check times
This commit is contained in:
@@ -155,7 +155,7 @@ func parseSystemInfo(comp Component, result *models.AnalysisResult) bool {
|
||||
// Don't overwrite real data from output.log with generic data
|
||||
// Only set if empty or still has the default placeholder value
|
||||
if result.Hardware.BoardInfo.ProductName == "" ||
|
||||
result.Hardware.BoardInfo.ProductName == "GPU Server (Field Diag)" {
|
||||
result.Hardware.BoardInfo.ProductName == "GPU Server (Field Diag)" {
|
||||
result.Hardware.BoardInfo.ProductName = value
|
||||
}
|
||||
case "SerialNumber", "Serial", "BoardSerial", "SystemSerial":
|
||||
@@ -186,6 +186,9 @@ func parseGPUComponent(comp Component) *models.GPU {
|
||||
switch prop.ID {
|
||||
case "DeviceID":
|
||||
deviceID = prop.GetValueAsString()
|
||||
if deviceID != "" {
|
||||
fmt.Sscanf(deviceID, "%x", &gpu.DeviceID)
|
||||
}
|
||||
case "Vendor":
|
||||
gpu.Manufacturer = prop.GetValueAsString()
|
||||
case "DeviceName":
|
||||
|
||||
Reference in New Issue
Block a user