Skip to content

Commit 6a5d9a5

Browse files
committed
Code style improvement
1 parent a1fc461 commit 6a5d9a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/graph_spectrum_calc.js

Lines changed: 4 additions & 4 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 multipiler = Math.floor(1 / analyserZoomY); // 0. ... 10
114-
if (multipiler == 0) {
113+
const multiplier = Math.floor(1 / analyserZoomY); // 0. ... 10
114+
if (multiplier == 0) {
115115
pointsPerSegment = 256;
116-
} else if (multipiler > 1) {
117-
pointsPerSegment *= 2 ** Math.floor(multipiler / 2);
116+
} else if (multiplier > 1) {
117+
pointsPerSegment *= 2 ** Math.floor(multiplier / 2);
118118
}
119119
pointsPerSegment = Math.min(pointsPerSegment, flightSamples.samples.length);
120120
const overlapCount = Math.floor(pointsPerSegment / 2);

0 commit comments

Comments
 (0)