mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-28 00:35:25 +08:00
last key to end is 0 if in zen mode
This commit is contained in:
parent
eedb92d77f
commit
cb9a54810d
1 changed files with 4 additions and 3 deletions
|
@ -1382,9 +1382,10 @@ function buildCompletedEvent(difficultyFailed: boolean): CompletedEvent {
|
|||
keySpacing: TestInput.keypressTimings.spacing.array,
|
||||
keyDuration: TestInput.keypressTimings.duration.array,
|
||||
keyOverlap: Misc.roundTo2(TestInput.keyOverlap.total),
|
||||
lastKeyToEnd: Misc.roundTo2(
|
||||
TestStats.end - TestInput.keypressTimings.spacing.last
|
||||
),
|
||||
lastKeyToEnd:
|
||||
Config.mode === "zen"
|
||||
? 0
|
||||
: Misc.roundTo2(TestStats.end - TestInput.keypressTimings.spacing.last),
|
||||
startToFirstKey: Misc.roundTo2(
|
||||
TestInput.keypressTimings.spacing.first - TestStats.start
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue