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:
parent
44b49847f9
commit
989de1284d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user