Hardware/CPU/AMD0FCPU.cs
changeset 195 0ee888c485d5
parent 194 fbf22ccd9d6f
child 196 5e9a8595296c
     1.1 --- a/Hardware/CPU/AMD0FCPU.cs	Tue Sep 21 10:33:28 2010 +0000
     1.2 +++ b/Hardware/CPU/AMD0FCPU.cs	Tue Sep 21 20:32:36 2010 +0000
     1.3 @@ -41,10 +41,10 @@
     1.4  namespace OpenHardwareMonitor.Hardware.CPU {
     1.5    internal sealed class AMD0FCPU : GenericCPU {
     1.6  
     1.7 -    private uint pciAddress;
     1.8 -    private Sensor[] coreTemperatures;
     1.9 -    private Sensor[] coreClocks;
    1.10 -    private Sensor busClock;
    1.11 +    private readonly uint pciAddress;
    1.12 +    private readonly Sensor[] coreTemperatures;
    1.13 +    private readonly Sensor[] coreClocks;
    1.14 +    private readonly Sensor busClock;
    1.15  
    1.16      private const ushort PCI_AMD_VENDOR_ID = 0x1022;
    1.17      private const ushort PCI_AMD_0FH_MISCELLANEOUS_DEVICE_ID = 0x1103;
    1.18 @@ -71,8 +71,7 @@
    1.19          for (int i = 0; i < coreCount; i++) {
    1.20            coreTemperatures[i] =
    1.21              new Sensor("Core #" + (i + 1), i, SensorType.Temperature,
    1.22 -              this, new ParameterDescription[] { 
    1.23 -                new ParameterDescription("Offset [°C]", 
    1.24 +              this, new [] { new ParameterDescription("Offset [°C]", 
    1.25                    "Temperature offset of the thermal sensor.\n" + 
    1.26                    "Temperature = Value + Offset.", offset)
    1.27            }, settings);
    1.28 @@ -97,9 +96,7 @@
    1.29      }
    1.30  
    1.31      protected override uint[] GetMSRs() {
    1.32 -      return new uint[] {
    1.33 -        FIDVID_STATUS
    1.34 -      };
    1.35 +      return new [] { FIDVID_STATUS };
    1.36      }
    1.37  
    1.38      public override void Update() {