##// END OF EJS Templates
progress: make determinate bar more like wget progress bar...
Brodie Rao -
r10453:7edc649f default
parent child Browse files
Show More
@@ -114,7 +114,10 b' class progbar(object):'
114 progwidth = termwidth - used - 3
114 progwidth = termwidth - used - 3
115 if total:
115 if total:
116 amt = pos * progwidth // total
116 amt = pos * progwidth // total
117 bar = '=' * (amt) + ' ' * (progwidth - amt)
117 bar = '=' * (amt - 1)
118 if amt > 0:
119 bar += '>'
120 bar += ' ' * (progwidth - amt)
118 else:
121 else:
119 progwidth -= 3
122 progwidth -= 3
120 self.indetcount += 1
123 self.indetcount += 1
General Comments 0
You need to be logged in to leave comments. Login now