1.1 --- a/Hardware/CPU/IntelCPU.cs Tue Sep 21 10:33:28 2010 +0000
1.2 +++ b/Hardware/CPU/IntelCPU.cs Tue Sep 21 20:32:36 2010 +0000
1.3 @@ -41,11 +41,11 @@
1.4 namespace OpenHardwareMonitor.Hardware.CPU {
1.5 internal sealed class IntelCPU : GenericCPU {
1.6
1.7 - private Sensor[] coreTemperatures;
1.8 - private Sensor[] coreClocks;
1.9 - private Sensor busClock;
1.10 + private readonly Sensor[] coreTemperatures;
1.11 + private readonly Sensor[] coreClocks;
1.12 + private readonly Sensor busClock;
1.13
1.14 - private uint maxNehalemMultiplier = 0;
1.15 + private readonly uint maxNehalemMultiplier;
1.16
1.17 private const uint IA32_THERM_STATUS_MSR = 0x019C;
1.18 private const uint IA32_TEMPERATURE_TARGET = 0x01A2;
1.19 @@ -127,7 +127,7 @@
1.20 coreTemperatures = new Sensor[coreCount];
1.21 for (int i = 0; i < coreTemperatures.Length; i++) {
1.22 coreTemperatures[i] = new Sensor(CoreString(i), i,
1.23 - SensorType.Temperature, this, new ParameterDescription[] {
1.24 + SensorType.Temperature, this, new [] {
1.25 new ParameterDescription(
1.26 "TjMax [°C]", "TjMax temperature of the core.\n" +
1.27 "Temperature = TjMax - TSlope * Value.", tjMax[i]),
1.28 @@ -153,7 +153,7 @@
1.29 }
1.30
1.31 protected override uint[] GetMSRs() {
1.32 - return new uint[] {
1.33 + return new [] {
1.34 MSR_PLATFORM_INFO,
1.35 IA32_PERF_STATUS ,
1.36 IA32_THERM_STATUS_MSR,