Refactored some of the hardware monitoring code and fixed a few code inspection warnings.

This commit is contained in:
Michael Möller
2010-09-21 20:32:36 +00:00
parent dfb06376d6
commit bcde768e25
44 changed files with 437 additions and 472 deletions

View File

@@ -41,17 +41,17 @@ using System.Globalization;
namespace OpenHardwareMonitor.Hardware.ATI {
internal sealed class ATIGPU : Hardware {
private string name;
private int adapterIndex;
private int busNumber;
private int deviceNumber;
private Sensor temperature;
private Sensor fan;
private Sensor coreClock;
private Sensor memoryClock;
private Sensor coreVoltage;
private Sensor coreLoad;
private Sensor fanControl;
private readonly string name;
private readonly int adapterIndex;
private readonly int busNumber;
private readonly int deviceNumber;
private readonly Sensor temperature;
private readonly Sensor fan;
private readonly Sensor coreClock;
private readonly Sensor memoryClock;
private readonly Sensor coreVoltage;
private readonly Sensor coreLoad;
private readonly Sensor fanControl;
public ATIGPU(string name, int adapterIndex, int busNumber,
int deviceNumber, ISettings settings)