From d58374c58e7bde65a679bd20a72cb0661260fbfe Mon Sep 17 00:00:00 2001 From: Trent Date: Sun, 22 Sep 2024 21:02:40 -0400 Subject: [PATCH] rounded again --- src/irmMetric.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/irmMetric.ts b/src/irmMetric.ts index e99df97..6a3724e 100644 --- a/src/irmMetric.ts +++ b/src/irmMetric.ts @@ -193,6 +193,10 @@ export function normalizeIRM (averageResponseTime: number, maxResponseTime: numb */ export async function getIRM(owner: string, repo: string): Promise { const issues = await fetchRepoIssues(owner, repo); - return calculateIRM(issues); + + + const irmScore = calculateIRM(issues); + return parseFloat(irmScore.toFixed(3)); + }