Fix RTX 40 Series Hot Spot and Memory Junction sensor not reading (#1890)
* Resolved an issue where RTX 40 Series sensors. * change if to else if
This commit is contained in:
@@ -487,6 +487,12 @@ internal sealed class NvidiaGpu : GenericGpu
|
||||
_hotSpotTemperature.Value = 0;
|
||||
_memoryJunctionTemperature.Value = thermalSensors.Temperatures[2] / 256.0f;
|
||||
}
|
||||
// RTX 40xx series
|
||||
else if (Name.StartsWith("NVIDIA GeForce RTX 40", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
_hotSpotTemperature.Value = thermalSensors.Temperatures[1] / 256.0f;
|
||||
_memoryJunctionTemperature.Value = thermalSensors.Temperatures[7] / 256.0f;
|
||||
}
|
||||
else
|
||||
{
|
||||
_hotSpotTemperature.Value = thermalSensors.Temperatures[1] / 256.0f;
|
||||
|
||||
Reference in New Issue
Block a user