Skip to content

Commit

Permalink
fix floating-point coverage measurement [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Aug 1, 2024
1 parent 1db4c20 commit 0a1d7f0
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 {100 - (($diff_bad / $diff_lines) * 100)}]
set diff_cov [expr {100 - ($diff_bad * 100.0) / $diff_lines}]
} else {
set diff_cov NA
}
Expand Down

0 comments on commit 0a1d7f0

Please sign in to comment.