mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
CControlAPI: SignalInfoCGI: don't show description in explicit calls
Origin commit data
------------------
Branch: ni/coolstream
Commit: 63d66538ce
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-02-10 (Mon, 10 Feb 2014)
Origin message was:
------------------
- CControlAPI: SignalInfoCGI: don't show description in explicit calls
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1772,16 +1772,22 @@ void CControlAPI::SignalInfoCGI(CyhookHandler *hh)
|
||||
if ( parame_empty || (hh->ParamList["1"] == "sig") ){
|
||||
unsigned int sig = frontend->getSignalStrength() & 0xFFFF;
|
||||
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") ){
|
||||
unsigned int snr = frontend->getSignalNoiseRatio() & 0xFFFF;
|
||||
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") ){
|
||||
unsigned int ber = frontend->getBitErrorRate();
|
||||
hh->printf("BER:%3u\n", ber);
|
||||
if (parame_empty)
|
||||
hh->printf("BER: ");
|
||||
hh->printf("%3u\n", ber);
|
||||
}
|
||||
}else
|
||||
hh->SendError();
|
||||
|
Reference in New Issue
Block a user