Better handling of defcon1

This commit is contained in:
Joseph Schorr 2016-03-10 15:02:38 -05:00
parent 821b09daaf
commit a941b26a2d
7 changed files with 21 additions and 7 deletions

View file

@ -133,15 +133,15 @@ angular.module('quay').factory('VulnerabilityService', ['Config', 'ApiService',
};
// Save the highest vulnerability severity for this feature.
highestSeverityIndex = Math.min(severity['index'], highestSeverityIndex)
highestSeverityIndex = Math.min(severity['index'], highestSeverityIndex);
// Add the score and (if necessary) the fixable scores.
score += exponentialScore;
severityCountMap[severity['index']]++
severityCountMap[severity['index']]++;
vulnerabilities.push(vuln_object);
if (vuln.FixedBy) {
fixableCountMap[severity['index']]++
fixableCountMap[severity['index']]++;
fixableScore += exponentialScore;
fixable.push(vuln_object)
}