From 8a51198dfaef31f2d8aba13a2ea383683bb07214 Mon Sep 17 00:00:00 2001 From: Tristan <24882191+Kizjkre@users.noreply.github.com> Date: Tue, 9 Jul 2024 17:26:16 -0700 Subject: [PATCH] Small fix Co-authored-by: terryzfeng --- src/tests/playwright/pages/perf-gain.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);