Changeset 124 for trunk/MacFaceLibrary/MachineStatus.cs
- Timestamp:
- May 26, 2009, 3:31:47 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MacFaceLibrary/MachineStatus.cs
-
Property
svn:keywords
set to
Id
r122 r124 1 using System; 1 // $Id$ 2 using System; 2 3 using System.Collections.Generic; 3 4 using System.Text; … … 5 6 namespace MacFace 6 7 { 7 class MachineStatus8 public class MachineStatus 8 9 { 9 10 protected static MachineStatus sharedMachineStatus; 10 11 11 protected Byte numberProcessors;12 protected Byte processorCount; 12 13 13 14 public static MachineStatus LocalMachineStatus() … … 23 24 { 24 25 NtKernel.SYSTEM_BASIC_INFORMATION info = NtKernel.QuerySystemBasicInformation(); 25 numberProcessors= info.NumberProcessors;26 processorCount = info.NumberProcessors; 26 27 } 27 28 28 public int NumberProcessors29 public int ProcessorCount 29 30 { 30 31 get 31 32 { 32 return numberProcessors;33 return processorCount; 33 34 } 34 35 } 35 36 37 public NtKernel.SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION[] ProcessorPerformances() 38 { 39 return NtKernel.QuerySystemProcessorPerformanceInfomation(processorCount); 40 } 36 41 } 37 42 } -
Property
svn:keywords
set to
Note: See TracChangeset
for help on using the changeset viewer.