mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-09 15:15:58 +08:00
added margin to the time traveler check
This commit is contained in:
parent
d2cdcce047
commit
642df7ede4
1 changed files with 2 additions and 2 deletions
|
@ -113,12 +113,12 @@ class ResultController {
|
|||
|
||||
result.timestamp = Math.round(result.timestamp / 1000) * 1000;
|
||||
|
||||
if (result.timestamp > Math.round(Date.now() / 1000) * 1000) {
|
||||
if (result.timestamp > Math.round(Date.now() / 1000) * 1000 + 10) {
|
||||
Logger.log(
|
||||
"time_traveler",
|
||||
{
|
||||
resultTimestamp: result.timestamp,
|
||||
serverTimestamp: Math.round(Date.now() / 1000) * 1000,
|
||||
serverTimestamp: Math.round(Date.now() / 1000) * 1000 + 10,
|
||||
},
|
||||
uid
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue