diff --git a/anki/sync.py b/anki/sync.py index 87d29a49f..f7dcb639b 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -74,9 +74,11 @@ def incrementalSend(self, strOrFile): self.sock.sendall(strOrFile) else: cnt = 0 + t = time.time() while 1: - if sendProgressHook: + if sendProgressHook and time.time() - t > 1: sendProgressHook(cnt) + t = time.time() data = strOrFile.read(CHUNK_SIZE) cnt += len(data) if not data: