not splicing keydata

also splicing burst and raw history
This commit is contained in:
Miodec 2022-06-26 12:13:37 +02:00
parent c540ac2def
commit 4173298f5f

View file

@ -310,9 +310,9 @@ export function calculateAccuracy(): number {
export function removeAfkData(): void {
const testSeconds = calculateTestSeconds();
TestInput.keypressPerSecond.splice(testSeconds);
(TestInput.keypressTimings.duration.array as number[]).splice(testSeconds);
(TestInput.keypressTimings.spacing.array as number[]).splice(testSeconds);
TestInput.wpmHistory.splice(testSeconds);
TestInput.burstHistory.splice(testSeconds);
TestInput.rawHistory.splice(testSeconds);
}
function countChars(): CharCount {