1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-12 23:56:13 +01:00

fix the download progress meter to be small enough to work with terminals 80 characters wide [#266989]

This commit is contained in:
Dr. Peter Poeml 2007-04-24 21:10:01 +00:00
parent 56f9752b8c
commit 637dec8e83

View File

@ -44,10 +44,10 @@ class TextMeter(BaseMeter):
#self.unsized_templ = '\r%-60.60s %5sB %s '
self.unsized_templ = '\r%%-%s.%ss %%5sB %%s ' % (width *4/3, width*4/3)
self.unsized_templ = '\r%%-%s.%ss %%5sB %%s ' % (width *4/3, width*3/5)
#self.sized_templ = '\r%-45.45s %3i%% |%-15.15s| %5sB %8s '
self.sized_templ = '\r%%-%s.%ss %%3i%%%% |%%-%s.%ss| %%5sB %%8s ' %(width*4/10, width*4/10, width/3, width/3)
self.bar_length = width/3
self.bar_length = width/5
self.sized_templ = '\r%%-%s.%ss %%3i%%%% |%%-%s.%ss| %%5sB %%8s ' %(width*4/10, width*4/10, self.bar_length, self.bar_length)