mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
- CControlAPI: SignalInfoCGI: don't show description in explicit calls
This commit is contained in:
@@ -1772,16 +1772,22 @@ void CControlAPI::SignalInfoCGI(CyhookHandler *hh)
|
|||||||
if ( parame_empty || (hh->ParamList["1"] == "sig") ){
|
if ( parame_empty || (hh->ParamList["1"] == "sig") ){
|
||||||
unsigned int sig = frontend->getSignalStrength() & 0xFFFF;
|
unsigned int sig = frontend->getSignalStrength() & 0xFFFF;
|
||||||
sig = (sig & 0xFFFF) * 100 / 65535;
|
sig = (sig & 0xFFFF) * 100 / 65535;
|
||||||
hh->printf("SIG:%3u\n", sig);
|
if (parame_empty)
|
||||||
|
hh->printf("SIG: ");
|
||||||
|
hh->printf("%3u\n", sig);
|
||||||
}
|
}
|
||||||
if ( parame_empty || (hh->ParamList["1"] == "snr") ){
|
if ( parame_empty || (hh->ParamList["1"] == "snr") ){
|
||||||
unsigned int snr = frontend->getSignalNoiseRatio() & 0xFFFF;
|
unsigned int snr = frontend->getSignalNoiseRatio() & 0xFFFF;
|
||||||
snr = (snr & 0xFFFF) * 100 / 65535;
|
snr = (snr & 0xFFFF) * 100 / 65535;
|
||||||
hh->printf("SNR:%3u\n", snr);
|
if (parame_empty)
|
||||||
|
hh->printf("SNR: ");
|
||||||
|
hh->printf("%3u\n", snr);
|
||||||
}
|
}
|
||||||
if ( parame_empty || (hh->ParamList["1"] == "ber") ){
|
if ( parame_empty || (hh->ParamList["1"] == "ber") ){
|
||||||
unsigned int ber = frontend->getBitErrorRate();
|
unsigned int ber = frontend->getBitErrorRate();
|
||||||
hh->printf("BER:%3u\n", ber);
|
if (parame_empty)
|
||||||
|
hh->printf("BER: ");
|
||||||
|
hh->printf("%3u\n", ber);
|
||||||
}
|
}
|
||||||
}else
|
}else
|
||||||
hh->SendError();
|
hh->SendError();
|
||||||
|
Reference in New Issue
Block a user