1.1 --- a/Hardware/CPU/CPULoad.cs Tue Sep 21 10:33:28 2010 +0000
1.2 +++ b/Hardware/CPU/CPULoad.cs Tue Sep 21 20:32:36 2010 +0000
1.3 @@ -42,7 +42,7 @@
1.4 internal class CPULoad {
1.5
1.6 [StructLayout(LayoutKind.Sequential)]
1.7 - private struct SystemProcessorPerformanceInformation {
1.8 + protected struct SystemProcessorPerformanceInformation {
1.9 public long IdleTime;
1.10 public long KernelTime;
1.11 public long UserTime;
1.12 @@ -51,7 +51,7 @@
1.13 public ulong Reserved2;
1.14 }
1.15
1.16 - private enum SystemInformationClass : int {
1.17 + protected enum SystemInformationClass {
1.18 SystemBasicInformation = 0,
1.19 SystemCpuInformation = 1,
1.20 SystemPerformanceInformation = 2,
1.21 @@ -60,15 +60,15 @@
1.22 SystemProcessorPerformanceInformation = 8
1.23 }
1.24
1.25 - private CPUID[][] cpuid;
1.26 + private readonly CPUID[][] cpuid;
1.27
1.28 private long systemTime;
1.29 private long[] idleTimes;
1.30
1.31 private float totalLoad;
1.32 - private float[] coreLoads;
1.33 + private readonly float[] coreLoads;
1.34
1.35 - private bool available = false;
1.36 + private readonly bool available;
1.37
1.38 private static long[] GetIdleTimes() {
1.39 SystemProcessorPerformanceInformation[] informations = new
1.40 @@ -159,7 +159,7 @@
1.41 this.idleTimes = newIdleTimes;
1.42 }
1.43
1.44 - private static class NativeMethods {
1.45 + protected static class NativeMethods {
1.46
1.47 [DllImport("ntdll.dll")]
1.48 public static extern int NtQuerySystemInformation(