Cast peak into a float for cases where it isn't (e.g. when HTOA generates a peak of 0)

This commit is contained in:
Chad Bergeron
2016-02-02 13:39:54 -05:00
parent 43f823546b
commit 219e6f509f

View File

@@ -431,7 +431,7 @@ Install pycdio and run 'rip offset find' to detect your drive's offset.
raise
self.stdout.write('Peak level: %.2f %%\n' % (
math.sqrt(trackResult.peak) * 100.0, ))
float(math.sqrt(trackResult.peak) * 100.0, )))
self.stdout.write('Rip quality: %.2f %%\n' % (
trackResult.quality * 100.0, ))