Skip to content

Commit

Permalink
fix bad merge conflict resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
justinabrahms committed Apr 10, 2023
1 parent 49e1032 commit 6b24280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cdx/cdx_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (r *CycloneDXReport) PackageIdentification() scorecard.ReportValue {
either := scorecard.PrettyPercent(r.hasPurlOrCPE, r.totalPackages)
return scorecard.ReportValue{
// What percentage has both Purl or CPEs?
Ratio: nanToZero(float32(r.hasPurl+r.hasCPE) / float32(r.totalPackages*2)),
Ratio: nanToZero(float32(r.hasPurlOrCPE) / float32(r.totalPackages)),
Reasoning: fmt.Sprintf("%d%% have either a purl (%d%%) or CPE (%d%%)", either, purlPercent, cpePercent),
}
}
Expand Down

0 comments on commit 6b24280

Please sign in to comment.