mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-29 13:34:13 -04:00
ChannelAnalyzerNG GUI: fixed new badwidth and low cutoff calculation integer range
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user