last key to end is 0 if in zen mode

This commit is contained in:
Miodec 2023-04-06 02:00:48 +02:00
parent eedb92d77f
commit cb9a54810d

View file

@ -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
),