]> git.parisson.com Git - timeside.git/commitdiff
tests/api/test_pipe.py: fix gain computation
authoryomguy <yomguy@parisson.com>
Thu, 18 Feb 2010 00:54:32 +0000 (00:54 +0000)
committeryomguy <yomguy@parisson.com>
Thu, 18 Feb 2010 00:54:32 +0000 (00:54 +0000)
tests/api/test_pipe.py

index 2296f316545a69bf169580104c1d842512f37be2..1aafd690019e23c99a8410c26738f7320d1dac72 100644 (file)
@@ -15,7 +15,7 @@ duration = examples.Duration()
 (decoder | maxlevel | duration).run()
 
 gain = 1
-if maxlevel.result() > 0:
+if maxlevel.result() > 1:
     gain = 0.9 / maxlevel.result()
 
 print "input maxlevel: %f" % maxlevel.result()