From 57064a70fa226a3b376c911b424a34446f1bec08 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 22 Jan 2010 16:12:51 -0700 Subject: [PATCH] Fix progress reporting magnitude in epub/mobi catalog plugin --- src/calibre/library/catalog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/library/catalog.py b/src/calibre/library/catalog.py index 3764fdd313..aaf1c4bc95 100644 --- a/src/calibre/library/catalog.py +++ b/src/calibre/library/catalog.py @@ -2510,14 +2510,14 @@ class EPUB_MOBI(CatalogPlugin): self.current_step += 1 self.progressString = description self.progressInt = ((self.current_step-1)*100)/self.total_steps - self.reporter(self.progressInt, self.progressString) + self.reporter(self.progressInt/100., self.progressString) return "%d%% %s" % (self.progressInt, self.progressString) def updateProgressMicroStep(self, description, micro_step_pct): step_range = 100/self.total_steps self.progressString = description self.progressInt = ((self.current_step-1)*100)/self.total_steps + (micro_step_pct*step_range)/100 - self.reporter(self.progressInt, self.progressString) + self.reporter(self.progressInt/100., self.progressString) return "%d%% %s" % (self.progressInt, self.progressString) def run(self, path_to_output, opts, db, notification=DummyReporter()):