1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 08:04:49 -05:00

Moving average: fixed initialization

This commit is contained in:
f4exb 2018-04-27 20:40:17 +02:00
parent 8d565f8187
commit 33e171bd9b

View File

@ -8,7 +8,7 @@
template<typename Type> class MovingAverage {
public:
MovingAverage(int historySize, Type initial)
MovingAverage(int historySize, Type initial) : m_index(0)
{
resize(historySize, initial);
}