Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CpuLoad != 0)
            {
                hash ^= CpuLoad.GetHashCode();
            }
            if (GpuLoad != 0)
            {
                hash ^= GpuLoad.GetHashCode();
            }
            if (Fps != 0)
            {
                hash ^= Fps.GetHashCode();
            }
            if (CpuTemp != 0)
            {
                hash ^= CpuTemp.GetHashCode();
            }
            if (GpuTemp != 0)
            {
                hash ^= GpuTemp.GetHashCode();
            }
            if (CpuFreq != 0)
            {
                hash ^= CpuFreq.GetHashCode();
            }
            if (GpuFreq != 0)
            {
                hash ^= GpuFreq.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public IEnumerable <CpuTemp> Get()
        {
            var     tempWorker = new TempWorker();
            CpuTemp cpu_temp   = tempWorker.GetTempFromProcess();

            var list = new List <CpuTemp>();

            list.Add(cpu_temp);

            return(list.ToArray());
        }