예제 #1
0
        public void PoolerMain(object systemInfo)
        {
            _systemInfo = (SystemInfo)systemInfo;
            _wmiGetter  = new WmiGetter();

            _systemInfo.MemTot = _wmiGetter.GetTotMem();

            while (true)
            {
                _systemInfo.CpuLoad = _wmiGetter.GetCpuLoad();
                _systemInfo.MemFree = _wmiGetter.GetAvailableMem();

                Thread.Sleep(500);
            }
        }
예제 #2
0
        public void PoolerMain(object systemInfo)
        {
            _systemInfo = (SystemInfo)systemInfo;
            _wmiGetter = new WmiGetter();

            _systemInfo.MemTot = _wmiGetter.GetTotMem();

            while (true)
            {
                _systemInfo.CpuLoad = _wmiGetter.GetCpuLoad();
                _systemInfo.MemFree = _wmiGetter.GetAvailableMem();

                Thread.Sleep(500);
            }
        }