Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed varible that will always be empty. Converted model year to an…
… integer
  • Loading branch information
shoustech committed Sep 19, 2023
commit cb98a81427179b83b1ac627fcae7f1e67901c418
5 changes: 2 additions & 3 deletions lib/graphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ function graphics(callback) {
vendor: '',
deviceName: '',
model: '',
productionYear: '',
productionYear: 0,
serial: '',
displayId: tsection.InstanceName,
main: false,
Expand Down Expand Up @@ -969,7 +969,6 @@ function graphics(callback) {
display.resolutionX = util.toInt(dsection.ScreenWidth)
display.resolutionY = util.toInt(dsection.ScreenHeight)
display.model = dsection.Name.split('(', 1)[0].trim()
display.productionYear = dsection.ManufactureYearWeek
display.serial = dsection.SerialNumberID
} else {
display.resolutionX = 0;
Expand All @@ -983,7 +982,7 @@ function graphics(callback) {
display.sizeY = 0
}
if (isection) {
display.productionYear = isection.YearOfManufacture
display.productionYear = util.toInt(isection.YearOfManufacture)
if (display.vendor === '') {
display.vendor = isection.ManufacturerName
}
Expand Down