fix Philips Tu1216 snrdb calculcation
authorghost <andreas.monzner@multimedia-labs.de>
Wed, 3 Dec 2008 14:33:47 +0000 (15:33 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Wed, 3 Dec 2008 14:33:47 +0000 (15:33 +0100)
lib/dvb/frontend.cpp

index 55be6f9c2837ffb0894c5b1b15cb072b919d291c..b25794f860be163eee14949e707f668c7c8924c9 100644 (file)
@@ -857,7 +857,7 @@ int eDVBFrontend::readFrontendData(int type)
                        {
                                snr = 0xFF - (snr & 0xFF);
                                if (snr != 0)
-                                       return (int)(-100 * (log10(snr) - log10(255)));
+                                       return 10 * (int)(-100 * (log10(snr) - log10(255)));
                                return 0;
                        }
 /* else