update time check up to 1 day

This commit is contained in:
Damien Elmes 2009-01-07 02:38:37 +09:00
parent 1fd2912e92
commit e3b564b72e

View file

@ -78,7 +78,8 @@ class LatestVersionFinder(QThread):
if resp['latestVersion'] > ankiqt.appVersion:
self.emit(SIGNAL("newVerAvail"), resp)
diff = resp['currentTime'] - time.time()
if abs(diff) > 300:
# a fairly liberal time check - sync is more strict
if abs(diff) > 86400:
self.emit(SIGNAL("clockIsOff"), diff)
class Updater(QThread):