Skip to content

Commit

Permalink
Update duino-js.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sys-256 authored Jul 7, 2021
1 parent 7864076 commit 33ad9a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions duino-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ function startMiner ()
{
threads = 8;
}
//checks if threads is smaller then the amount of threads the user has, and if it isn't, it sets threads to the amount of threads the user has
if (threads > userThreads)
{
threads = userThreads;
}

//creates threads workers (so if threads is 1, it would make 1 worker, and if threads was 12, it would make 12 workers)
for (let workersAmount = 0; workersAmount < threads; workersAmount++)
Expand Down

0 comments on commit 33ad9a6

Please sign in to comment.