fix(algorithms/fast): truncate decimal place on number of threads

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-08-26 15:10:01 +00:00
parent 14834dd304
commit b7a725cb02

View File

@@ -4,7 +4,7 @@ export default function process(
difficulty = 5,
signal = null,
progressCallback = null,
threads = Math.max(navigator.hardwareConcurrency / 2, 1),
threads = Math.trunc(Math.max(navigator.hardwareConcurrency / 2, 1)),
) {
console.debug("fast algo");