Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

Commit

Permalink
Correct NIST scoring math.
Browse files Browse the repository at this point in the history
  • Loading branch information
skapunker committed Oct 4, 2019
1 parent c265313 commit 6f09261
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helpers/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def nist800(data)
if data["nist_impact"] == "Very Low"
impact_val = 0
elsif data["nist_impact"] == "Low"
impact_val = 25
impact_val = 16
elsif data["nist_impact"] == "Moderate"
impact_val = 30
elsif data["nist_impact"] == "High"
Expand Down Expand Up @@ -455,9 +455,9 @@ def nist800(data)
nist_rating = "High"
elsif nist800_total >= 90
nist_rating = "Moderate"
elsif nist800_total >= 50
elsif nist800_total >= 32
nist_rating = "Low"
elsif nist800_total <= 0
elsif nist800_total < 32
nist_rating = "Very Low"
end

Expand Down

0 comments on commit 6f09261

Please sign in to comment.