don't compensate for clock skew

This commit is contained in:
Damien Elmes 2010-07-30 18:15:24 +09:00
parent e956aa9afb
commit 5e7c62bca5

View file

@ -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