mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-17 14:19:40 +08:00
flooring instead of rounding
This commit is contained in:
parent
f30fa1c9d5
commit
7782b11b12
1 changed files with 3 additions and 3 deletions
|
|
@ -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>`;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue