mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 18:06: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:
parent
56f9752b8c
commit
637dec8e83
@ -44,10 +44,10 @@ class TextMeter(BaseMeter):
|
|||||||
|
|
||||||
|
|
||||||
#self.unsized_templ = '\r%-60.60s %5sB %s '
|
#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%-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/5
|
||||||
self.bar_length = width/3
|
self.sized_templ = '\r%%-%s.%ss %%3i%%%% |%%-%s.%ss| %%5sB %%8s ' %(width*4/10, width*4/10, self.bar_length, self.bar_length)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user