X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=blobdiff_plain;f=cmd%2Fbloom-cmd.py;fp=cmd%2Fbloom-cmd.py;h=d74cce2704567597fc1fce934032dfd025041e55;hp=cd4506d482c2ac8c10f49accee9065bbf314a031;hb=4aab823ce71d2afc22e32ef45d971fbb647d1f12;hpb=9d6a70f48926fcbb84e39c909c0e8a8843a17154 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.