Change GPU identifiers

Fixes #258
This commit is contained in:
Phyxion
2020-05-25 13:45:48 +02:00
parent 366bdf64a4
commit f482865952
2 changed files with 2 additions and 2 deletions
@@ -43,7 +43,7 @@ namespace LibreHardwareMonitor.Hardware.Gpu
private readonly Sensor _temperatureVddc;
public AmdGpu(string name, int adapterIndex, int busNumber, int deviceNumber, ISettings settings)
: base(name, new Identifier("gpu", adapterIndex.ToString(CultureInfo.InvariantCulture)), settings)
: base(name, new Identifier("gpu-amd", adapterIndex.ToString(CultureInfo.InvariantCulture)), settings)
{
_adapterIndex = adapterIndex;
BusNumber = busNumber;
@@ -32,7 +32,7 @@ namespace LibreHardwareMonitor.Hardware.Gpu
private readonly Sensor[] _temperatures;
public NvidiaGpu(int adapterIndex, NvApi.NvPhysicalGpuHandle handle, NvApi.NvDisplayHandle? displayHandle, ISettings settings)
: base(GetName(handle), new Identifier("gpu", adapterIndex.ToString(CultureInfo.InvariantCulture)), settings)
: base(GetName(handle), new Identifier("gpu-nvidia", adapterIndex.ToString(CultureInfo.InvariantCulture)), settings)
{
_adapterIndex = adapterIndex;
_handle = handle;