made sure the displayed data is rounded

This commit is contained in:
Jack 2020-05-31 15:37:09 +01:00
parent 49a959e6ba
commit ebd7a894cf
2 changed files with 6 additions and 6 deletions

View file

@ -414,9 +414,9 @@ function loadMoreLines(){
$(".pageAccount .history table tbody").append(`
<tr>
<td>${result.wpm}</td>
<td>${raw}</td>
<td>${result.acc}%</td>
<td>${Math.round(result.wpm)}</td>
<td>${Math.round(raw)}</td>
<td>${Math.round(result.acc)}%</td>
<td>${result.correctChars}</td>
<td>${result.incorrectChars}</td>
<td>${result.mode} ${result.mode2}${withpunc}</td>

View file

@ -510,9 +510,9 @@ function showResult(difficultyFailed = false) {
}
clearIntervals();
let testtime = roundedToFixed(stats.time,1);
$("#result .stats .wpm .bottom").text(stats.wpm);
$("#result .stats .raw .bottom").text(stats.wpmRaw);
$("#result .stats .acc .bottom").text(stats.acc + "%");
$("#result .stats .wpm .bottom").text(Math.round(stats.wpm));
$("#result .stats .raw .bottom").text(Math.round(stats.wpmRaw));
$("#result .stats .acc .bottom").text(Math.round(stats.acc) + "%");
$("#result .stats .key .bottom").text(stats.correctChars + stats.spaces + "/" + stats.incorrectChars);
$("#result .stats .time .bottom").text(testtime+'s');