# HG changeset patch
# User moel.mich
# Date 1268078751 0
# Node ID c71d4cd5f29c1cf0babf1f03e001b98c8f6aea8c
# Parent  42784fd84b169e5f08ee1b7365f19fc7eba4a822
Fixed Issue 12.

diff -r 42784fd84b16 -r c71d4cd5f29c Hardware/CPU/AMD0FCPU.cs
--- a/Hardware/CPU/AMD0FCPU.cs	Mon Mar 08 19:42:42 2010 +0000
+++ b/Hardware/CPU/AMD0FCPU.cs	Mon Mar 08 20:05:51 2010 +0000
@@ -50,8 +50,7 @@
 
     private uint pciAddress;
 
-    private Sensor[] coreTemperatures;
-    private float offset;
+    private Sensor[] coreTemperatures;    
 
     private Sensor totalLoad;
     private Sensor[] coreLoads;
@@ -79,7 +78,7 @@
 
       totalLoad = new Sensor("CPU Total", 0, SensorType.Load, this);
         
-      offset = -49.0f;
+      float offset = -49.0f;
 
       // AM2+ 65nm +21 offset
       if (model >= 0x69 && model != 0xc1 && model != 0x6c && model != 0x7c) 
@@ -89,13 +88,13 @@
       coreLoads = new Sensor[coreCount];
       for (int i = 0; i < coreCount; i++) {
         coreTemperatures[i] =
-          new Sensor("Core #" + (i + 1), i, SensorType.Temperature, this);
-        coreLoads[i] = new Sensor("Core #" + (i + 1), i + 1, null,
-          SensorType.Load, this, new ParameterDescription[] {
-            new ParameterDescription("Offset", 
+          new Sensor("Core #" + (i + 1), i, null, SensorType.Temperature, this,
+            new ParameterDescription[] { new ParameterDescription("Offset", 
               "Temperature offset of the thermal sensor.\n" + 
               "Temperature = Value + Offset.", offset)
           });
+        coreLoads[i] = new Sensor("Core #" + (i + 1), i + 1,
+          SensorType.Load, this);
       }
 
       cpuLoad = new CPULoad(coreCount, 1);
diff -r 42784fd84b16 -r c71d4cd5f29c Properties/AssemblyInfo.cs
--- a/Properties/AssemblyInfo.cs	Mon Mar 08 19:42:42 2010 +0000
+++ b/Properties/AssemblyInfo.cs	Mon Mar 08 20:05:51 2010 +0000
@@ -69,5 +69,5 @@
 // You can specify all the values or you can default the Build and Revision Numbers 
 // by using the '*' as shown below:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.1.26.0")]
-[assembly: AssemblyFileVersion("0.1.26.0")]
+[assembly: AssemblyVersion("0.1.26.1")]
+[assembly: AssemblyFileVersion("0.1.26.1")]