mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
zapit,record: fix some really useless uses of float
This commit is contained in:
@@ -237,7 +237,7 @@ bool CRecordInstance::Stop(bool remove_event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
time_t end_time = time(0);
|
time_t end_time = time(0);
|
||||||
recMovieInfo->length = (int) round((double) (end_time - start_time) / (double) 60);
|
recMovieInfo->length = (end_time - start_time + 30) / 60;
|
||||||
|
|
||||||
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, rec_stop_msg.c_str());
|
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, rec_stop_msg.c_str());
|
||||||
if (!(autoshift && g_settings.auto_timeshift))
|
if (!(autoshift && g_settings.auto_timeshift))
|
||||||
|
@@ -621,7 +621,7 @@ void CServiceScan::process_satellite_delivery_system_descriptor(const unsigned c
|
|||||||
if (feparams->dvb_feparams.u.qpsk.symbol_rate >= 50000000)
|
if (feparams->dvb_feparams.u.qpsk.symbol_rate >= 50000000)
|
||||||
feparams->dvb_feparams.u.qpsk.symbol_rate /= 10;
|
feparams->dvb_feparams.u.qpsk.symbol_rate /= 10;
|
||||||
|
|
||||||
feparams->dvb_feparams.frequency = (int) 1000 * (int) round ((double) feparams->dvb_feparams.frequency / (double) 1000);
|
feparams->dvb_feparams.frequency = 1000 * ((feparams->dvb_feparams.frequency + 500) / 1000);
|
||||||
|
|
||||||
#ifdef SCAN_DEBUG
|
#ifdef SCAN_DEBUG
|
||||||
printf("[FNT] new TP: sat %d freq %d SR %d fec %d pol %d\n", *satellitePosition, feparams->dvb_feparams.frequency, feparams->dvb_feparams.u.qpsk.symbol_rate, fec_inner, * polarization);
|
printf("[FNT] new TP: sat %d freq %d SR %d fec %d pol %d\n", *satellitePosition, feparams->dvb_feparams.frequency, feparams->dvb_feparams.u.qpsk.symbol_rate, fec_inner, * polarization);
|
||||||
|
@@ -353,7 +353,7 @@ void CServiceManager::ParseTransponders(xmlNodePtr node, t_satellite_position sa
|
|||||||
if(feparams.dvb_feparams.frequency < 20000)
|
if(feparams.dvb_feparams.frequency < 20000)
|
||||||
feparams.dvb_feparams.frequency = feparams.dvb_feparams.frequency*1000;
|
feparams.dvb_feparams.frequency = feparams.dvb_feparams.frequency*1000;
|
||||||
else
|
else
|
||||||
feparams.dvb_feparams.frequency = (int) 1000 * (int) round ((double) feparams.dvb_feparams.frequency / (double) 1000);
|
feparams.dvb_feparams.frequency = 1000 * ((feparams.dvb_feparams.frequency + 500) / 1000);
|
||||||
}
|
}
|
||||||
freq_id_t freq = CREATE_FREQ_ID(feparams.dvb_feparams.frequency, delsys != FE_QPSK);
|
freq_id_t freq = CREATE_FREQ_ID(feparams.dvb_feparams.frequency, delsys != FE_QPSK);
|
||||||
|
|
||||||
@@ -534,7 +534,7 @@ void CServiceManager::ParseSatTransponders(fe_type_t fType, xmlNodePtr search, t
|
|||||||
if(modulation == 2 && ((fe_code_rate_t) xml_fec != FEC_AUTO))
|
if(modulation == 2 && ((fe_code_rate_t) xml_fec != FEC_AUTO))
|
||||||
xml_fec += 9;
|
xml_fec += 9;
|
||||||
feparams.dvb_feparams.u.qpsk.fec_inner = (fe_code_rate_t) xml_fec;
|
feparams.dvb_feparams.u.qpsk.fec_inner = (fe_code_rate_t) xml_fec;
|
||||||
feparams.dvb_feparams.frequency = (int) 1000 * (int) round ((double) feparams.dvb_feparams.frequency / (double) 1000);
|
feparams.dvb_feparams.frequency = 1000 * ((feparams.dvb_feparams.frequency + 500) / 1000);
|
||||||
}
|
}
|
||||||
else if (fType == FE_OFDM) {
|
else if (fType == FE_OFDM) {
|
||||||
feparams.dvb_feparams.u.ofdm.bandwidth = (fe_bandwidth_t)
|
feparams.dvb_feparams.u.ofdm.bandwidth = (fe_bandwidth_t)
|
||||||
|
@@ -358,7 +358,7 @@ bool CNit::ParseSatelliteDescriptor(SatelliteDeliverySystemDescriptor * sd, Tran
|
|||||||
}
|
}
|
||||||
|
|
||||||
feparams.dvb_feparams.u.qpsk.fec_inner = (fe_code_rate_t) fec_inner;
|
feparams.dvb_feparams.u.qpsk.fec_inner = (fe_code_rate_t) fec_inner;
|
||||||
feparams.dvb_feparams.frequency = (int) 1000 * (int) round ((double) feparams.dvb_feparams.frequency / (double) 1000);
|
feparams.dvb_feparams.frequency = 1000 * ((feparams.dvb_feparams.frequency + 500) / 1000);
|
||||||
|
|
||||||
freq_id_t freq = CREATE_FREQ_ID(feparams.dvb_feparams.frequency, false);
|
freq_id_t freq = CREATE_FREQ_ID(feparams.dvb_feparams.frequency, false);
|
||||||
transponder_id_t TsidOnid = CREATE_TRANSPONDER_ID64(
|
transponder_id_t TsidOnid = CREATE_TRANSPONDER_ID64(
|
||||||
|
Reference in New Issue
Block a user