mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
not adding incomplete seconds
This commit is contained in:
parent
f37e62cd44
commit
52dd1723f3
1 changed files with 6 additions and 6 deletions
|
@ -1254,12 +1254,12 @@ export function finish(difficultyFailed = false) {
|
|||
$("#result .stats .time .bottom .afk").text(afkSecondsPercent + "% afk");
|
||||
}
|
||||
let ttseconds = testtime - afkseconds;
|
||||
if (!difficultyFailed) {
|
||||
ttseconds +=
|
||||
TestStats.incompleteSeconds < 0
|
||||
? 0
|
||||
: Misc.roundTo2(TestStats.incompleteSeconds);
|
||||
}
|
||||
// if (!difficultyFailed) {
|
||||
// ttseconds +=
|
||||
// TestStats.incompleteSeconds < 0
|
||||
// ? 0
|
||||
// : Misc.roundTo2(TestStats.incompleteSeconds);
|
||||
// }
|
||||
TodayTracker.addSeconds(ttseconds);
|
||||
$("#result .stats .time .bottom .timeToday").text(TodayTracker.getString());
|
||||
$("#result .stats .key .bottom").text(testtime + "s");
|
||||
|
|
Loading…
Reference in a new issue