Skip to content

Commit

Permalink
Merge pull request #1512 from nextstrain/fix/web-num-threads
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov authored Jul 12, 2024
2 parents 4d62bb7 + 28408f5 commit b5b330a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextclade-web/src/helpers/getNumThreads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function getNumThreads() {
}

let numThreads = navigator?.hardwareConcurrency ?? DEFAULT_NUM_THREADS
numThreads = Math.max(numThreads, DEFAULT_NUM_THREADS)
numThreads = clamp(numThreads, DEFAULT_NUM_THREADS, MAXIMUM_NUM_THREADS)

// Detect how much memory is available and adjust number of threads if per-thread memory is too low
const guess = guessNumThreads()
Expand Down

0 comments on commit b5b330a

Please sign in to comment.