[dvblast-devel] Simple change for better human reading ...

Kompan Kolia kompan at yandex.ru
Fri Mar 2 12:54:58 CET 2012


Please, change dvb.c for better human reading of some parameters..

388                if( ioctl( i_frontend, FE_READ_SIGNAL_STRENGTH, &i_value ) >= 0 )
389                    msg_Dbg( NULL, "- Signal strength: %d", i_value );
390                if( ioctl( i_frontend, FE_READ_SNR, &i_value ) >= 0 )
391                    msg_Dbg( NULL, "- SNR: %d", i_value );

and old output
SNR(Signal/Noise Ratio): 166
BER (Bit Error Rate):    0
Signal Strength:         376


Like this:

388                if( ioctl( i_frontend, FE_READ_SIGNAL_STRENGTH, &i_value ) >= 0 )
389                    msg_Dbg( NULL, "- Signal Strength:         %ld (%4.1f\%%)\n", (long)fe_signal_strength, 100.0*fe_signal_strength/65536)", i_value );
390                if( ioctl( i_frontend, FE_READ_SNR, &i_value ) >= 0 )
391                    msg_Dbg( NULL, "- SNR(Signal/Noise Ratio): %ld (%4.1f\%%) \n", (long)fe_snr,100.0*fe_snr/65536)", i_value );

and new output
SNR(Signal/Noise Ratio): 166 ( 0.3%)
BER (Bit Error Rate):    0
Signal Strength:         376 (0.6%)


More information about the dvblast-devel mailing list