mirror of
https://github.com/TecharoHQ/anubis.git
synced 2025-09-08 04:05:23 -04:00
fix(web/js): broken progress bar with slow algo (#673)
This was revealed by the reformat in #546. Signed-off-by: Eric T. Johnson <yut23@users.noreply.github.com>
This commit is contained in:
parent
4c74934e9f
commit
060b10ea2d
@ -70,7 +70,7 @@ function processTask() {
|
|||||||
let hash;
|
let hash;
|
||||||
let nonce = 0;
|
let nonce = 0;
|
||||||
do {
|
do {
|
||||||
if (nonce & (1023 === 0)) {
|
if ((nonce & 1023) === 0) {
|
||||||
postMessage(nonce);
|
postMessage(nonce);
|
||||||
}
|
}
|
||||||
hash = await sha256(data + nonce++);
|
hash = await sha256(data + nonce++);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user