Skip to content

Commit

Permalink
fix coverage percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jul 25, 2024
1 parent bf991e9 commit db12884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/measure-coverage.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if {[ev GITHUB_BASE_REF base]} {
set diff_lines [exec jq .total_num_lines diff-cover.json]
set diff_bad [exec jq .total_num_violations diff-cover.json]
if {$diff_lines > 0} {
set diff_cov [expr {1.0 - ($diff_bad / $diff_lines)}]
set diff_cov [expr {100 - ($diff_bad / $diff_lines) * 100}]
} else {
set diff_cov NA
}
Expand Down

0 comments on commit db12884

Please sign in to comment.