* morituri/program/cdparanoia.py:

Make sure we calculate fractional speed.
This commit is contained in:
Thomas Vander Stichele
2012-11-25 20:57:19 +00:00
parent 5b1e2c88a4
commit 76e8d94801
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2012-11-25 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/program/cdparanoia.py:
Make sure we calculate fractional speed.
2012-11-25 Thomas Vander Stichele <thomas at apestaart dot org>
patch by: mustbenice

View File

@@ -373,7 +373,7 @@ class ReadTrackTask(log.Loggable, task.Task):
self.exception = ReturnCodeError(self._popen.returncode)
self.quality = self._parser.getTrackQuality()
self.speed = (offsetLength / 75) / (end_time - self._start_time)
self.speed = (offsetLength / 75.0) / (end_time - self._start_time)
self.stop()
return