Hardware/Nvidia/NvidiaGPU.cs
changeset 195 0ee888c485d5
parent 182 4801e9eaf979
child 275 35788ddd1825
     1.1 --- a/Hardware/Nvidia/NvidiaGPU.cs	Tue Sep 21 10:33:28 2010 +0000
     1.2 +++ b/Hardware/Nvidia/NvidiaGPU.cs	Tue Sep 21 20:32:36 2010 +0000
     1.3 @@ -40,19 +40,19 @@
     1.4  using System.Text;
     1.5  
     1.6  namespace OpenHardwareMonitor.Hardware.Nvidia {
     1.7 -  internal class NvidiaGPU : Hardware, IHardware {
     1.8 +  internal class NvidiaGPU : Hardware {
     1.9  
    1.10 -    private string name;
    1.11 -    private int adapterIndex;
    1.12 -    private NvPhysicalGpuHandle handle;
    1.13 -    private NvDisplayHandle? displayHandle;
    1.14 +    private readonly string name;
    1.15 +    private readonly int adapterIndex;
    1.16 +    private readonly NvPhysicalGpuHandle handle;
    1.17 +    private readonly NvDisplayHandle? displayHandle;
    1.18  
    1.19 -    private Sensor[] temperatures;
    1.20 -    private Sensor fan = null;
    1.21 -    private Sensor[] clocks;
    1.22 -    private Sensor[] loads;
    1.23 -    private Sensor control;
    1.24 -    private Sensor memoryLoad;
    1.25 +    private readonly Sensor[] temperatures;
    1.26 +    private readonly Sensor fan;
    1.27 +    private readonly Sensor[] clocks;
    1.28 +    private readonly Sensor[] loads;
    1.29 +    private readonly Sensor control;
    1.30 +    private readonly Sensor memoryLoad;
    1.31  
    1.32      public NvidiaGPU(int adapterIndex, NvPhysicalGpuHandle handle, 
    1.33        NvDisplayHandle? displayHandle, ISettings settings)