Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
            }
        }