[SCM] morituri/master: * morituri/program/cdparanoia.py: Make sure we calculate fractional speed.

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:46 UTC 2014


The following commit has been merged in the master branch:
commit 76e8d94801e94026391db134cd3f9f14dbd95bac
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sun Nov 25 20:57:19 2012 +0000

    	* morituri/program/cdparanoia.py:
    	  Make sure we calculate fractional speed.

diff --git a/ChangeLog b/ChangeLog
index dc6402a..e60cb48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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
 
 	* morituri/common/program.py:
diff --git a/morituri/program/cdparanoia.py b/morituri/program/cdparanoia.py
index dfe1bd3..d7e5c7c 100644
--- a/morituri/program/cdparanoia.py
+++ b/morituri/program/cdparanoia.py
@@ -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

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list