Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
fix - reg - Fixed GPU parser crashing on macOS
Browse files Browse the repository at this point in the history
We've fixed GPU parser crash on macOS

---

A missing variable in the debug statement made Inxi.NET crash, so we've fixed it.

It only affected macOS systems.

---

Type: fix
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Oct 19, 2023
1 parent 8fe72ec commit b3a5fe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Inxi.NET/Parsers/GraphicsParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class GraphicsParser : HardwareParserBase, IHardwareParser
{
GPUName = (string)GraphicsDict["spdisplays_device-id"].ToObject();
GPUChipID = (string)GraphicsDict["spdisplays_vendor-id"].ToObject();
InxiTrace.Debug("Got information. GPUName: {0}, GPUChipID: {1}", GPUName);
InxiTrace.Debug("Got information. GPUName: {0}, GPUChipID: {1}", GPUName, GPUChipID);

// Create an instance of graphics class
GPU = new Graphics(GPUName, "", "", GPUChipID, "");
Expand Down Expand Up @@ -179,4 +179,4 @@ class GraphicsParser : HardwareParserBase, IHardwareParser
}

}
}
}

0 comments on commit b3a5fe9

Please sign in to comment.