diff -r fbf22ccd9d6f -r 0ee888c485d5 Hardware/CPU/CPUGroup.cs --- a/Hardware/CPU/CPUGroup.cs Tue Sep 21 10:33:28 2010 +0000 +++ b/Hardware/CPU/CPUGroup.cs Tue Sep 21 20:32:36 2010 +0000 @@ -43,9 +43,9 @@ namespace OpenHardwareMonitor.Hardware.CPU { internal class CPUGroup : IGroup { - private List hardware = new List(); + private readonly List hardware = new List(); - private CPUID[][][] threads; + private readonly CPUID[][][] threads; private static CPUID[][] GetProcessorThreads() { @@ -77,7 +77,7 @@ return processorThreads; } - private static CPUID[][] GroupThreadsByCore(CPUID[] threads) { + private static CPUID[][] GroupThreadsByCore(IEnumerable threads) { SortedDictionary> cores = new SortedDictionary>(); @@ -102,7 +102,7 @@ public CPUGroup(ISettings settings) { // No implementation for cpuid on Unix systems - int p = (int)System.Environment.OSVersion.Platform; + int p = (int)Environment.OSVersion.Platform; if ((p == 4) || (p == 128)) return;