mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-12 06:18:39 +08:00
not splicing keydata
also splicing burst and raw history
This commit is contained in:
parent
c540ac2def
commit
4173298f5f
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue