Hardware/CPU/AMD0FCPU.cs
changeset 77 c71d4cd5f29c
parent 63 1a7c13ac7348
child 90 3333b29a1746
     1.1 --- a/Hardware/CPU/AMD0FCPU.cs	Mon Mar 08 19:42:42 2010 +0000
     1.2 +++ b/Hardware/CPU/AMD0FCPU.cs	Mon Mar 08 20:05:51 2010 +0000
     1.3 @@ -50,8 +50,7 @@
     1.4  
     1.5      private uint pciAddress;
     1.6  
     1.7 -    private Sensor[] coreTemperatures;
     1.8 -    private float offset;
     1.9 +    private Sensor[] coreTemperatures;    
    1.10  
    1.11      private Sensor totalLoad;
    1.12      private Sensor[] coreLoads;
    1.13 @@ -79,7 +78,7 @@
    1.14  
    1.15        totalLoad = new Sensor("CPU Total", 0, SensorType.Load, this);
    1.16          
    1.17 -      offset = -49.0f;
    1.18 +      float offset = -49.0f;
    1.19  
    1.20        // AM2+ 65nm +21 offset
    1.21        if (model >= 0x69 && model != 0xc1 && model != 0x6c && model != 0x7c) 
    1.22 @@ -89,13 +88,13 @@
    1.23        coreLoads = new Sensor[coreCount];
    1.24        for (int i = 0; i < coreCount; i++) {
    1.25          coreTemperatures[i] =
    1.26 -          new Sensor("Core #" + (i + 1), i, SensorType.Temperature, this);
    1.27 -        coreLoads[i] = new Sensor("Core #" + (i + 1), i + 1, null,
    1.28 -          SensorType.Load, this, new ParameterDescription[] {
    1.29 -            new ParameterDescription("Offset", 
    1.30 +          new Sensor("Core #" + (i + 1), i, null, SensorType.Temperature, this,
    1.31 +            new ParameterDescription[] { new ParameterDescription("Offset", 
    1.32                "Temperature offset of the thermal sensor.\n" + 
    1.33                "Temperature = Value + Offset.", offset)
    1.34            });
    1.35 +        coreLoads[i] = new Sensor("Core #" + (i + 1), i + 1,
    1.36 +          SensorType.Load, this);
    1.37        }
    1.38  
    1.39        cpuLoad = new CPULoad(coreCount, 1);