mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix progress reporting magnitude in epub/mobi catalog plugin
This commit is contained in:
parent
1861db15dd
commit
57064a70fa
@ -2510,14 +2510,14 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
self.current_step += 1
|
self.current_step += 1
|
||||||
self.progressString = description
|
self.progressString = description
|
||||||
self.progressInt = ((self.current_step-1)*100)/self.total_steps
|
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)
|
return "%d%% %s" % (self.progressInt, self.progressString)
|
||||||
|
|
||||||
def updateProgressMicroStep(self, description, micro_step_pct):
|
def updateProgressMicroStep(self, description, micro_step_pct):
|
||||||
step_range = 100/self.total_steps
|
step_range = 100/self.total_steps
|
||||||
self.progressString = description
|
self.progressString = description
|
||||||
self.progressInt = ((self.current_step-1)*100)/self.total_steps + (micro_step_pct*step_range)/100
|
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)
|
return "%d%% %s" % (self.progressInt, self.progressString)
|
||||||
|
|
||||||
def run(self, path_to_output, opts, db, notification=DummyReporter()):
|
def run(self, path_to_output, opts, db, notification=DummyReporter()):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user