mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 17:03:43 +02:00
MovingPercentile moved else to same line as }
This commit is contained in:
parent
0da6374e19
commit
5251057ed6
1 changed files with 1 additions and 2 deletions
|
@ -34,8 +34,7 @@ void MovingPercentile::updatePercentile(float sample) {
|
|||
// update _indexOfPercentile
|
||||
float index = _percentile * (float)(_samplesSorted.size() - 1);
|
||||
_indexOfPercentile = (int)(index + 0.5f); // round to int
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
// find index of sample with id = _newSampleId and replace it with new sample
|
||||
newSampleIndex = _sampleIds.indexOf(_newSampleId);
|
||||
_samplesSorted[newSampleIndex] = sample;
|
||||
|
|
Loading…
Reference in a new issue