Skip to content

Commit

Permalink
Merge pull request #1 from kolekrstev/avd-dev
Browse files Browse the repository at this point in the history
Rounding "Avg. Task success" updates
  • Loading branch information
kolekrstev authored Sep 15, 2023
2 parents ee32554 + 6de0a1b commit 671c203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/utils-common/src/lib/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ export function getAvgTestSuccess<T extends { success_rate?: number }>(

if (testsWithSuccessRate.length > 0) {
return (
testsWithSuccessRate.reduce(
Math.round((testsWithSuccessRate.reduce(
(total, success_rate) => total + success_rate,
0
) / testsWithSuccessRate.length
) / testsWithSuccessRate.length) * 100 ) / 100
);
}

Expand Down

0 comments on commit 671c203

Please sign in to comment.