Hardware/CPU/IntelCPU.cs
changeset 166 fa9dfbfc4145
parent 165 813d8bc3192f
child 167 b7cc9d09aefe
     1.1 --- a/Hardware/CPU/IntelCPU.cs	Sun Aug 08 13:57:26 2010 +0000
     1.2 +++ b/Hardware/CPU/IntelCPU.cs	Thu Aug 12 20:53:27 2010 +0000
     1.3 @@ -45,7 +45,7 @@
     1.4  using System.Text;
     1.5  
     1.6  namespace OpenHardwareMonitor.Hardware.CPU {
     1.7 -  internal class IntelCPU : Hardware, IHardware {
     1.8 +  internal sealed class IntelCPU : Hardware, IHardware {
     1.9  
    1.10      private int processorIndex;
    1.11      private CPUID[][] cpuid;
    1.12 @@ -243,7 +243,10 @@
    1.13      }
    1.14  
    1.15      public override Identifier Identifier {
    1.16 -      get { return new Identifier("intelcpu", processorIndex.ToString()); }
    1.17 +      get { 
    1.18 +        return new Identifier("intelcpu", 
    1.19 +          processorIndex.ToString(CultureInfo.InvariantCulture)); 
    1.20 +      }
    1.21      }
    1.22  
    1.23      public override HardwareType HardwareType {
    1.24 @@ -254,11 +257,11 @@
    1.25        uint eax, edx;
    1.26        if (WinRing0.RdmsrTx(msr, out eax, out edx, (UIntPtr)(1L << thread))) {
    1.27          r.Append(" ");
    1.28 -        r.Append((msr).ToString("X8"));
    1.29 +        r.Append((msr).ToString("X8", CultureInfo.InvariantCulture));
    1.30          r.Append("  ");
    1.31 -        r.Append((edx).ToString("X8"));
    1.32 +        r.Append((edx).ToString("X8", CultureInfo.InvariantCulture));
    1.33          r.Append("  ");
    1.34 -        r.Append((eax).ToString("X8"));
    1.35 +        r.Append((eax).ToString("X8", CultureInfo.InvariantCulture));
    1.36          r.AppendLine();
    1.37        }
    1.38      }