diff -r fa9dfbfc4145 -r b7cc9d09aefe Hardware/CPU/CPUGroup.cs --- a/Hardware/CPU/CPUGroup.cs Thu Aug 12 20:53:27 2010 +0000 +++ b/Hardware/CPU/CPUGroup.cs Sun Aug 15 14:46:58 2010 +0000 @@ -48,13 +48,13 @@ private CPUID[][][] threads; - private CPUID[][] GetProcessorThreads() { + private static CPUID[][] GetProcessorThreads() { List threads = new List(); for (int i = 0; i < 32; i++) { try { threads.Add(new CPUID(i)); - } catch (ArgumentException) { } + } catch (ArgumentOutOfRangeException) { } } SortedDictionary> processors = @@ -78,7 +78,7 @@ return processorThreads; } - private CPUID[][] GroupThreadsByCore(CPUID[] threads) { + private static CPUID[][] GroupThreadsByCore(CPUID[] threads) { SortedDictionary> cores = new SortedDictionary>(); @@ -151,7 +151,9 @@ } } - private void AppendCpuidData(StringBuilder r, uint[,] data, uint offset) { + private static void AppendCpuidData(StringBuilder r, uint[,] data, + uint offset) + { for (int i = 0; i < data.GetLength(0); i++) { r.Append(" "); r.Append((i + offset).ToString("X8", CultureInfo.InvariantCulture));