X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fbloom-cmd.py;h=d74cce2704567597fc1fce934032dfd025041e55;hb=refs%2Fheads%2Funused-variable-do_bloom;hp=cd4506d482c2ac8c10f49accee9065bbf314a031;hpb=c488f60bc18fbcf7221d7372a7eab039fea5e739;p=bup.git diff --git a/cmd/bloom-cmd.py b/cmd/bloom-cmd.py index cd4506d..d74cce2 100755 --- a/cmd/bloom-cmd.py +++ b/cmd/bloom-cmd.py @@ -110,14 +110,13 @@ def do_bloom(path, outfilename): if b is None: tfname = os.path.join(path, 'bup.tmp.bloom') b = bloom.create(tfname, expected=add_count, k=opt.k) - count = 0 + icount = 0 for name in add: ix = git.open_idx(name) qprogress('bloom: writing %.2f%% (%d/%d objects)\r' % (icount*100.0/add_count, icount, add_count)) b.add_idx(ix) - count += 1 icount += len(ix) # Currently, there's an open file object for tfname inside b.