Skip to content

Commit

Permalink
disallow selecting more than system cores (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro authored Oct 8, 2023
1 parent fabdb63 commit 1b21f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/panels/analysis/CoresSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function CoresSlide({
<>
<Slider
min={0}
max={6}
max={Math.log2(navigator.hardwareConcurrency)}
value={tempValue}
onChange={setTempValue}
onChangeEnd={setValue}
Expand Down

0 comments on commit 1b21f0b

Please sign in to comment.