Skip to content

Commit d10f471

Browse files
committed
Resolved wrong variable name
1 parent 011b977 commit d10f471

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/graph_spectrum_calc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ GraphSpectrumCalc.dataLoadPSD = function(analyserZoomY) {
110110
const flightSamples = this._getFlightSamplesFreq(false);
111111

112112
let pointsPerSegment = 512;
113-
const multiplier = Math.floor(1 / analyserZoomY); // 0. ... 10
113+
const multipiler = Math.floor(1 / analyserZoomY); // 0. ... 10
114114
if (multipiler == 0) {
115115
pointsPerSegment = 256;
116-
} else if (multiplier > 1) {
117-
pointsPerSegment *= 2 ** Math.floor(multiplier / 2);
116+
} else if (multipiler > 1) {
117+
pointsPerSegment *= 2 ** Math.floor(multipiler / 2);
118118
}
119119
pointsPerSegment = Math.min(pointsPerSegment, flightSamples.samples.length);
120120
const overlapCount = Math.floor(pointsPerSegment / 2);

0 commit comments

Comments
 (0)