From d9d4dc3b6cc26abb5f52db1c6b3b2b4f849d61d9 Mon Sep 17 00:00:00 2001 From: papoteur-mga Date: Wed, 8 Oct 2014 17:18:03 +0200 Subject: Fix wrong progress steps with small images --- lib/isodumper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/isodumper.py b/lib/isodumper.py index 801b9ea..cafb86d 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -405,7 +405,8 @@ class IsoDumper: mark = self.log.create_mark("end", self.log.get_end_iter(), False) self.logview.scroll_to_mark(mark, 0.05, True, 0.0, 1.0) progress.set_fraction(float(indice)/100) - indice +=1 + while (written > steps[indice]): + indice +=1 try: os.fsync(ofc) except: -- cgit v1.2.1