Skip to content

Commit

Permalink
[Fix][Metric] Fix result formula error
Browse files Browse the repository at this point in the history
  • Loading branch information
zixi0825 authored Aug 26, 2024
1 parent aba5952 commit a74108b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public String getZhName() {
public BigDecimal getResult(BigDecimal actualValue, BigDecimal expectedValue) {
BigDecimal result = BigDecimal.valueOf(0);
if (expectedValue != null && expectedValue.compareTo(BigDecimal.ZERO) != 0) {
result = actualValue.divide(expectedValue, 2, RoundingMode.HALF_UP).multiply(new BigDecimal(100));
result = actualValue.divide(expectedValue, 4, RoundingMode.HALF_UP).multiply(new BigDecimal(100));
}

return result;
Expand Down

0 comments on commit a74108b

Please sign in to comment.