Skip to content

Commit

Permalink
🧹 adjust impact values that are mapped to ratings
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Dec 29, 2024
1 parent 3666ece commit 11f38c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions explorer/impact.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
// Impact represents severity rating scale when impact is provided as human-readable string value
var impactMapping = map[string]int32{
"none": 0,
"low": 10,
"medium": 40,
"high": 70,
"critical": 100,
"low": 20,
"medium": 55,
"high": 80,
"critical": 95,
}

func (v *Impact) HumanReadable() string {
Expand Down

0 comments on commit 11f38c2

Please sign in to comment.