diff options
author | Magnus Ahltorp <map@kth.se> | 2016-03-15 13:55:51 +0100 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2016-03-15 13:55:51 +0100 |
commit | b1d0d1bf04c7cb49d1e80eaac73886cf4ad5b1dc (patch) | |
tree | d4f7353e0d1c92711dd5989a52316969a232035e /tools | |
parent | 06c6290ac4f0507374dfbf703e6577dfe48dfae7 (diff) |
bugfix: re-added fetched_entries
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/merge_backup.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/merge_backup.py b/tools/merge_backup.py index 0c283e5..48ac133 100755 --- a/tools/merge_backup.py +++ b/tools/merge_backup.py @@ -113,6 +113,7 @@ def merge_backup(args, config, localconfig, secondaries): print >>sys.stderr, "missing entries:", len(missingentries) sys.stderr.flush() + fetched_entries = 0 print >>sys.stderr, "fetching missing entries", sys.stderr.flush() with requests.sessions.Session() as session: @@ -125,6 +126,7 @@ def merge_backup(args, config, localconfig, secondaries): if sendentryresult["result"] != "ok": print >>sys.stderr, "sendentry_merge:", sendentryresult sys.exit(1) + fetched_entries += len(missingentry_hashes) print >>sys.stderr, fetched_entries, sys.stderr.flush() print >>sys.stderr |