~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/recordcounter.py

Fetch progress bar update now happens every 7 records instead of 71.
 Progress bar is better on slower connections.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
        # Users of RecordCounter instance update progress bar every
33
33
        # _STEP_ records. We choose are reasonably high number to keep
34
 
        # display updates from being two frequent. This is an odd number
 
34
        # display updates from being too frequent. This is an odd number
35
35
        # to ensure that the last digit of the records fetched in
36
36
        # fetches vs estimate ratio changes periodically.
37
 
        self.STEP = 71
 
37
        self.STEP = 7
38
38
 
39
39
    def is_initialized(self):
40
40
        return self.initialized