mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 00:06:16 +08:00
parent
acc85ce7b8
commit
d098d3a2d8
|
@ -281,7 +281,7 @@ export function calculateBurst(): number {
|
|||
const timeToWrite = (performance.now() - TestInput.currentBurstStart) / 1000;
|
||||
let wordLength;
|
||||
wordLength = TestInput.input.current.length;
|
||||
if (Config.mode === "zen" && wordLength == 0) {
|
||||
if (wordLength == 0) {
|
||||
wordLength = TestInput.input.getHistoryLast().length;
|
||||
}
|
||||
const speed = Misc.roundTo2((wordLength * (60 / timeToWrite)) / 5);
|
||||
|
|
Loading…
Reference in a new issue