* morituri/program/cdrdao.py:
Avoid floating point error.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2011-07-20 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* morituri/program/cdrdao.py:
|
||||||
|
Avoid floating point error.
|
||||||
|
|
||||||
2011-07-09 Thomas Vander Stichele <thomas at apestaart dot org>
|
2011-07-09 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* morituri/common/task.py:
|
* morituri/common/task.py:
|
||||||
|
|||||||
@@ -431,7 +431,8 @@ class ReadSessionTask(CDRDAOTask):
|
|||||||
def readbyteserr(self, bytes):
|
def readbyteserr(self, bytes):
|
||||||
self.parser.read(bytes)
|
self.parser.read(bytes)
|
||||||
|
|
||||||
self.setProgress(float(self.parser.track - 1) / self.parser.tracks)
|
if self.parser.tracks > 0:
|
||||||
|
self.setProgress(float(self.parser.track - 1) / self.parser.tracks)
|
||||||
|
|
||||||
def done(self):
|
def done(self):
|
||||||
# by merging the TOC info.
|
# by merging the TOC info.
|
||||||
|
|||||||
Reference in New Issue
Block a user