flooring instead of rounding

This commit is contained in:
Miodec 2022-06-24 20:22:13 +02:00
parent f30fa1c9d5
commit 7782b11b12

View file

@ -138,16 +138,16 @@ function buildPbHtml(
<div class="test">${modeString}</div>
<div class="wpm">${Math.round(pbData.wpm * multiplier)}</div>
<div class="acc">${
pbData.acc === undefined ? "-" : Math.round(pbData.acc) + "%"
pbData.acc === undefined ? "-" : Math.floor(pbData.acc) + "%"
}</div>
</div>
<div class="fullTest">
<div>${modeString}</div>
<div>${Math.round(pbData.wpm * multiplier)} wpm</div>
<div>${Math.round(pbData.raw * multiplier)} raw</div>
<div>${pbData.acc === undefined ? "-" : Math.round(pbData.acc)} acc</div>
<div>${pbData.acc === undefined ? "-" : Math.floor(pbData.acc)} acc</div>
<div>${
pbData.consistency === undefined ? "-" : Math.round(pbData.consistency)
pbData.consistency === undefined ? "-" : Math.floor(pbData.consistency)
} con</div>
<div>${dateText}</div>
</div>`;