Skip to content

Commit

Permalink
Fix progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerler committed Aug 5, 2021
1 parent 8b3ce57 commit b8fec1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mtkclient/Library/mtk_daxflash.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def show_progress(self, prefix, pos, total, display=True):
self.progpos=pos
prog = round(float(pos) / float(total) * float(100), 2)
if pos != total:
if prog > self.prog:
if prog != self.prog:
if display:
tdiff=t0-self.progtime
datasize=(pos-self.progpos)/1024/1024
Expand Down

0 comments on commit b8fec1b

Please sign in to comment.