Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure criticality_score between 0 and 1 #69

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

Yikun
Copy link
Contributor

@Yikun Yikun commented Jan 12, 2021

Due to the negative weight, the numerator of score may be greater than the denominator, that means the score would be greater than 1. And the numerator may be also less than 0, that means final score would be less than 0.

So in this patch, we set the finall criticality_score between 0 (least-critical) and 1 (most-critical).

Close: #68

Due to the negative weight, the numerator of score may be greater
than the denominator, that means the score would be greater than 1.
And the numerator may be also less than 0, that means final score
would be less than 0.

So in this patch, we set the finall criticality_score between
0 (least-critical) and 1 (most-critical).
@inferno-chromium inferno-chromium merged commit 781b601 into ossf:main Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get a wrong score greater than 1
2 participants