Skip to content

Commit

Permalink
rounded again
Browse files Browse the repository at this point in the history
  • Loading branch information
Tridentinus committed Sep 23, 2024
1 parent 34fc0a4 commit d58374c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/irmMetric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ export function normalizeIRM (averageResponseTime: number, maxResponseTime: numb
*/
export async function getIRM(owner: string, repo: string): Promise<number> {
const issues = await fetchRepoIssues(owner, repo);
return calculateIRM(issues);


const irmScore = calculateIRM(issues);
return parseFloat(irmScore.toFixed(3));


}

0 comments on commit d58374c

Please sign in to comment.