fixed slightly incorrect raw calculation

This commit is contained in:
Jack 2020-09-26 00:12:25 +01:00
parent 25f202c743
commit eb5a96bf3f

View file

@ -2871,7 +2871,7 @@ function liveWpmAndRaw() {
let testSeconds = (testNow - testStart) / 1000;
let wpm = Math.round(((correctWordChars + spaces) * (60 / testSeconds)) / 5);
let raw = Math.round(
((chars + spaces + currentInput.length) * (60 / testSeconds)) / 5
((chars + spaces) * (60 / testSeconds)) / 5
);
return {
wpm: wpm,