From b7a725cb02e557e8e87e07c8a29c8a345fa4a0a9 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Tue, 26 Aug 2025 15:10:01 +0000 Subject: [PATCH] fix(algorithms/fast): truncate decimal place on number of threads Signed-off-by: Xe Iaso --- web/js/algorithms/fast.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/algorithms/fast.mjs b/web/js/algorithms/fast.mjs index 4175e358..ee08a19f 100644 --- a/web/js/algorithms/fast.mjs +++ b/web/js/algorithms/fast.mjs @@ -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");