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

            if (TimeElapsed != 0D)
            {
                hash ^= TimeElapsed.GetHashCode();
            }
            if (TimeUser != 0D)
            {
                hash ^= TimeUser.GetHashCode();
            }
            if (TimeSystem != 0D)
            {
                hash ^= TimeSystem.GetHashCode();
            }
            if (TotalCpuTime != 0UL)
            {
                hash ^= TotalCpuTime.GetHashCode();
            }
            if (IdleCpuTime != 0UL)
            {
                hash ^= IdleCpuTime.GetHashCode();
            }
            if (CqPollCount != 0UL)
            {
                hash ^= CqPollCount.GetHashCode();
            }
            if (coreStats_ != null)
            {
                hash ^= CoreStats.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (latencies_ != null)
            {
                hash ^= Latencies.GetHashCode();
            }
            if (TimeElapsed != 0D)
            {
                hash ^= TimeElapsed.GetHashCode();
            }
            if (TimeUser != 0D)
            {
                hash ^= TimeUser.GetHashCode();
            }
            if (TimeSystem != 0D)
            {
                hash ^= TimeSystem.GetHashCode();
            }
            hash ^= requestResults_.GetHashCode();
            if (CqPollCount != 0UL)
            {
                hash ^= CqPollCount.GetHashCode();
            }
            if (coreStats_ != null)
            {
                hash ^= CoreStats.GetHashCode();
            }
            return(hash);
        }