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 8, 2021
1 parent c801790 commit b41d278
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion duino-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ function startMiner ()
threads = userThreads;
}

//sets workerVer to 0
let workerVer = 0;

//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 All @@ -36,7 +39,8 @@ function startMiner ()
//passes the username and rigid to the worker
worker.postMessage({
username: username,
rigid: rigid
rigid: rigid,
workerVer: workerVer
});
}
}

0 comments on commit b41d278

Please sign in to comment.