mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 04:19:06 +08:00
always rounding to 2 after calculations are done
This commit is contained in:
parent
8af10af599
commit
f8cc82cd23
1 changed files with 3 additions and 3 deletions
|
@ -397,8 +397,8 @@ function countChars(): CharCount {
|
|||
|
||||
export function calculateStats(): Stats {
|
||||
let testSeconds = calculateTestSeconds();
|
||||
console.log((end2 - start2) / 1000);
|
||||
console.log(testSeconds);
|
||||
// console.log((end2 - start2) / 1000);
|
||||
// console.log(testSeconds);
|
||||
if (Config.mode != "custom") {
|
||||
testSeconds = Misc.roundTo2(testSeconds);
|
||||
}
|
||||
|
@ -428,7 +428,7 @@ export function calculateStats(): Stats {
|
|||
chars.spaces +
|
||||
chars.incorrectChars +
|
||||
chars.extraChars,
|
||||
time: testSeconds,
|
||||
time: Misc.roundTo2(testSeconds),
|
||||
spaces: chars.spaces,
|
||||
correctSpaces: chars.correctSpaces,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue