1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-02-03 09:44:01 -05:00

ChannelAnalyzerNG GUI: fixed new badwidth and low cutoff calculation integer range

This commit is contained in:
f4exb 2017-11-11 05:42:49 +01:00
parent 44b49847f9
commit 989de1284d

View File

@ -162,8 +162,8 @@ bool ChannelAnalyzerNGGUI::handleMessage(const Message& message)
{
int newRate = getRequestedChannelSampleRate() / (1<<m_spanLog2);
int newBW = (ui->BW->value() * 100 * m_rate) / newRate;
int newLC = (ui->lowCut->value() * 100 * m_rate) / newRate;
uint64_t newBW = (ui->BW->value() * 100L * m_rate) / newRate;
uint64_t newLC = (ui->lowCut->value() * 100L * m_rate) / newRate;
qDebug() << "ChannelAnalyzerNGGUI::handleMessage: MsgReportChannelSampleRateChanged:"
<< " newRate: " << newRate