Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
Co-authored-by: terryzfeng <terryzfeng@users.noreply.github.com>
  • Loading branch information
Kizjkre and terryzfeng committed Jul 10, 2024
1 parent a3bcd9e commit 8a51198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/playwright/pages/perf-gain.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8a51198

Please sign in to comment.