mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-29 18:27:33 +08:00
not rounding time in custom tests
This commit is contained in:
parent
adb6d20ddb
commit
fae0f654c1
1 changed files with 6 additions and 1 deletions
|
|
@ -389,7 +389,12 @@ function countChars() {
|
|||
}
|
||||
|
||||
export function calculateStats() {
|
||||
let testSeconds = Misc.roundTo2(TestStats.calculateTestSeconds());
|
||||
let testSeconds;
|
||||
if (Config.mode == "custom") {
|
||||
testSeconds = TestStats.calculateTestSeconds();
|
||||
} else {
|
||||
testSeconds = Misc.roundTo2(TestStats.calculateTestSeconds());
|
||||
}
|
||||
let chars = countChars();
|
||||
let wpm = Misc.roundTo2(
|
||||
((chars.correctWordChars + chars.correctSpaces) * (60 / testSeconds)) / 5
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue