mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 13:44:29 +08:00
parent
acbd1de113
commit
be106b8f1c
1 changed files with 9 additions and 9 deletions
|
|
@ -951,17 +951,17 @@ export function saveLocalResult(data: SaveLocalResultData): void {
|
|||
startedTests: 0,
|
||||
completedTests: 0,
|
||||
};
|
||||
|
||||
const time =
|
||||
data.result.testDuration +
|
||||
data.result.incompleteTestSeconds -
|
||||
data.result.afkDuration;
|
||||
|
||||
snapshot.typingStats.timeTyping += time;
|
||||
snapshot.typingStats.startedTests += data.result.restartCount + 1;
|
||||
snapshot.typingStats.completedTests += 1;
|
||||
}
|
||||
|
||||
const time =
|
||||
data.result.testDuration +
|
||||
data.result.incompleteTestSeconds -
|
||||
data.result.afkDuration;
|
||||
|
||||
snapshot.typingStats.timeTyping += time;
|
||||
snapshot.typingStats.startedTests += data.result.restartCount + 1;
|
||||
snapshot.typingStats.completedTests += 1;
|
||||
|
||||
if (data.isPb) {
|
||||
saveLocalPB(
|
||||
data.result.mode,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue