diff -r 5400e3e383f7 -r 1a7c13ac7348 Hardware/CPU/AMD10CPU.cs --- a/Hardware/CPU/AMD10CPU.cs Tue Feb 23 19:45:40 2010 +0000 +++ b/Hardware/CPU/AMD10CPU.cs Sat Feb 27 15:55:17 2010 +0000 @@ -86,8 +86,10 @@ // AMD family 10h processors support only one temperature sensor coreTemperature = new Sensor( - "Core" + (coreCount > 1 ? " #1 - #" + coreCount : ""), 0, - SensorType.Temperature, this); + "Core" + (coreCount > 1 ? " #1 - #" + coreCount : ""), 0, null, + SensorType.Temperature, this, new ParameterDescription[] { + new ParameterDescription("Offset", "Temperature offset.", 0) + }); pciAddress = WinRing0.FindPciDeviceById(PCI_AMD_VENDOR_ID, PCI_AMD_10H_MISCELLANEOUS_DEVICE_ID, 0); @@ -119,7 +121,8 @@ uint value; if (WinRing0.ReadPciConfigDwordEx(pciAddress, REPORTED_TEMPERATURE_CONTROL_REGISTER, out value)) { - coreTemperature.Value = ((value >> 21) & 0x7FF) / 8.0f; + coreTemperature.Value = ((value >> 21) & 0x7FF) / 8.0f + + coreTemperature.Parameters[0].Value; ActivateSensor(coreTemperature); } else { DeactivateSensor(coreTemperature);