CCMEngine.SortedListener.ShouldFilter C# (CSharp) Method

ShouldFilter() private method

private ShouldFilter ( CCMEngine.ccMetric metric ) : bool
metric CCMEngine.ccMetric
return bool
        private bool ShouldFilter(ccMetric metric)
        {
            string lowerUnit = metric.Unit.ToLower();

            foreach (string s in this.ignoreUnits)
            {
                if (lowerUnit.Contains(s.ToLower()))
                    return true;
            }

            if (metric.CCM < this.threshold)
                return true;

            return false;
        }