Modified str outputs and ensured that tracks with no peakdB set trackResult.peak to a float.

This commit is contained in:
Chad Bergeron
2016-02-02 16:14:26 -05:00
parent 219e6f509f
commit 0da064fe97
2 changed files with 6 additions and 5 deletions

View File

@@ -430,10 +430,9 @@ Install pycdio and run 'rip offset find' to detect your drive's offset.
number)
raise
self.stdout.write('Peak level: %.2f %%\n' % (
float(math.sqrt(trackResult.peak) * 100.0, )))
self.stdout.write('Rip quality: %.2f %%\n' % (
trackResult.quality * 100.0, ))
self.stdout.write('Peak level: {:.2%} \n'.format(math.sqrt(trackResult.peak)))
self.stdout.write('Rip quality: {:.2%}\n'.format(trackResult.quality))
# overlay this rip onto the Table
if number == 0: