From 7782b11b123ced0df1216f34e7515ab16a0bd274 Mon Sep 17 00:00:00 2001 From: Miodec Date: Fri, 24 Jun 2022 20:22:13 +0200 Subject: [PATCH] flooring instead of rounding --- frontend/src/ts/account/pb-tables.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/ts/account/pb-tables.ts b/frontend/src/ts/account/pb-tables.ts index c79540e90..9d1610098 100644 --- a/frontend/src/ts/account/pb-tables.ts +++ b/frontend/src/ts/account/pb-tables.ts @@ -138,16 +138,16 @@ function buildPbHtml(
${modeString}
${Math.round(pbData.wpm * multiplier)}
${ - pbData.acc === undefined ? "-" : Math.round(pbData.acc) + "%" + pbData.acc === undefined ? "-" : Math.floor(pbData.acc) + "%" }
${modeString}
${Math.round(pbData.wpm * multiplier)} wpm
${Math.round(pbData.raw * multiplier)} raw
-
${pbData.acc === undefined ? "-" : Math.round(pbData.acc)} acc
+
${pbData.acc === undefined ? "-" : Math.floor(pbData.acc)} acc
${ - pbData.consistency === undefined ? "-" : Math.round(pbData.consistency) + pbData.consistency === undefined ? "-" : Math.floor(pbData.consistency) } con
${dateText}
`;