From c5f022fe750264a4a6b103bc8b34a1a2bc28aea1 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 10 Feb 2014 21:50:34 +0100 Subject: [PATCH] CControlAPI: SignalInfoCGI: don't show description in explicit calls Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/63d66538ce7f42a3ce8515510d1590157a98f838 Author: vanhofen 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 --- src/nhttpd/tuxboxapi/coolstream/controlapi.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp index 01a85382f..b61e35409 100644 --- a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp @@ -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();