mirror of
https://github.com/bkerler/edl.git
synced 2024-11-24 16:37:51 -05:00
Improve progress bar
This commit is contained in:
parent
b97f670433
commit
06c462dbcc
1 changed files with 2 additions and 2 deletions
|
@ -145,7 +145,7 @@ class progress:
|
||||||
suffix=prefix + ' (Sector 0x%X of 0x%X) %0.2f MB/s' %
|
suffix=prefix + ' (Sector 0x%X of 0x%X) %0.2f MB/s' %
|
||||||
(pos // self.pagesize,
|
(pos // self.pagesize,
|
||||||
total // self.pagesize,
|
total // self.pagesize,
|
||||||
0), bar_length=50)
|
0), bar_length=10)
|
||||||
|
|
||||||
if prog > self.prog or prog==100.0:
|
if prog > self.prog or prog==100.0:
|
||||||
if display:
|
if display:
|
||||||
|
@ -179,7 +179,7 @@ class progress:
|
||||||
suffix=prefix + f' (Sector 0x%X of 0x%X, {hinfo}) %0.2f MB/s' %
|
suffix=prefix + f' (Sector 0x%X of 0x%X, {hinfo}) %0.2f MB/s' %
|
||||||
(pos // self.pagesize,
|
(pos // self.pagesize,
|
||||||
total // self.pagesize,
|
total // self.pagesize,
|
||||||
throughput), bar_length=50)
|
throughput), bar_length=10)
|
||||||
self.prog = prog
|
self.prog = prog
|
||||||
self.progpos = pos
|
self.progpos = pos
|
||||||
self.progtime = t0
|
self.progtime = t0
|
||||||
|
|
Loading…
Reference in a new issue