mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
don't compensate for clock skew
This commit is contained in:
parent
e956aa9afb
commit
5e7c62bca5
1 changed files with 2 additions and 4 deletions
|
|
@ -120,11 +120,9 @@ class SyncTools(object):
|
||||||
if self.localTime == self.remoteTime:
|
if self.localTime == self.remoteTime:
|
||||||
return False
|
return False
|
||||||
l = self._lastSync(); r = self.server._lastSync()
|
l = self._lastSync(); r = self.server._lastSync()
|
||||||
# Set lastSync to the lower of the two sides, minus some leeway for
|
# set lastSync to the lower of the two sides
|
||||||
# clock skew. Near the end of the sync we'll bump this to the new
|
|
||||||
# time.
|
|
||||||
if l != r:
|
if l != r:
|
||||||
self.deck.lastSync = min(l, r) - 350
|
self.deck.lastSync = min(l, r)
|
||||||
else:
|
else:
|
||||||
self.deck.lastSync = l
|
self.deck.lastSync = l
|
||||||
return True
|
return True
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue