Skip to content

Commit

Permalink
fix Linux GPU Vendor determination
Browse files Browse the repository at this point in the history
Speed up Windows USB Information gathering
  • Loading branch information
L3tum committed Dec 5, 2020
1 parent c48e8e0 commit cb1d14e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HardwareInformation/Providers/LinuxInformationProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ private void GetGPUInformation(ref MachineInformation information)
}
}

var name = string.IsNullOrWhiteSpace(vendor) ? vendor : relevant.Replace(vendor, "");
var name = string.IsNullOrWhiteSpace(vendor) ? relevant : relevant.Replace(vendor, "");

if (!string.IsNullOrEmpty(name))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public void PostProviderUpdateInformation(ref MachineInformation information)

private void GatherPnpDevices(ref MachineInformation information, bool win10)
{
using var mos = new ManagementObjectSearcher("select * from Win32_PnPEntity");
using var mos = new ManagementObjectSearcher("select DeviceID from Win32_PnPEntity");
var mbos = new ArrayList(mos.Get());
var data = new Dictionary<string, string[]>();

Expand Down

0 comments on commit cb1d14e

Please sign in to comment.