diff --git a/src/tests/playwright/pages/perf-gain.html b/src/tests/playwright/pages/perf-gain.html index f2bb9ecf3..5ba31882a 100644 --- a/src/tests/playwright/pages/perf-gain.html +++ b/src/tests/playwright/pages/perf-gain.html @@ -29,7 +29,7 @@ const leftChannelFloat32Array = await testResult; let numberOfAcceptableSamples = 0; for (let i = 0; i < leftChannelFloat32Array.length; i++) { - numberOfAcceptableSamples += beCloseTo(leftChannelFloat32Array[i], 1, 0); + numberOfAcceptableSamples += beCloseTo(leftChannelFloat32Array[i], 1, 0) ? 1 : 0; } console.info('% match:', numberOfAcceptableSamples / leftChannelFloat32Array.length);