Ignore:
Timestamp:
May 26, 2009, 3:31:47 AM (9 years ago)
Author:
rryu
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MacFaceLibrary/MachineStatus.cs

    • Property svn:keywords set to Id
    r122 r124  
    1 using System;
     1// $Id$
     2using System;
    23using System.Collections.Generic;
    34using System.Text;
     
    56namespace MacFace
    67{
    7     class MachineStatus
     8    public class MachineStatus
    89    {
    910        protected static MachineStatus sharedMachineStatus;
    1011
    11         protected Byte numberProcessors;
     12        protected Byte processorCount;
    1213
    1314        public static MachineStatus LocalMachineStatus()
     
    2324        {
    2425            NtKernel.SYSTEM_BASIC_INFORMATION info = NtKernel.QuerySystemBasicInformation();
    25             numberProcessors = info.NumberProcessors;
     26            processorCount = info.NumberProcessors;
    2627        }
    2728
    28         public int NumberProcessors
     29        public int ProcessorCount
    2930        {
    3031            get
    3132            {
    32                 return numberProcessors;
     33                return processorCount;
    3334            }
    3435        }
    3536
     37        public NtKernel.SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION[] ProcessorPerformances()
     38        {
     39            return NtKernel.QuerySystemProcessorPerformanceInfomation(processorCount);
     40        }
    3641    }
    3742}
Note: See TracChangeset for help on using the changeset viewer.