aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-23 09:54:25 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-23 09:54:25 +0800
commitc3b6b9602e488a11fdafff4a4b5aefdc6d2d885d (patch)
treeea11e161f62a42a34e19925ab97197c898040ad2 /main.go
parentAdd JS solver (diff)
downloadpowxy-c3b6b9602e488a11fdafff4a4b5aefdc6d2d885d.tar.gz
powxy-c3b6b9602e488a11fdafff4a4b5aefdc6d2d885d.tar.zst
powxy-c3b6b9602e488a11fdafff4a4b5aefdc6d2d885d.zip
Update every 256 tries
Diffstat (limited to '')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index ce4fe1c..14e36ed 100644
--- a/main.go
+++ b/main.go
@@ -134,8 +134,8 @@ document.addEventListener("DOMContentLoaded", function() {
nonce++;
- // Update status every 65536 tries
- if ((nonce & 0xFFFFn) === 0n) {
+ // Update status every 256 tries
+ if ((nonce & 0x00FFn) === 0n) {
status_el.textContent = "Tried " + nonce + " candidates so far...";
await new Promise(r => setTimeout(r, 0));
}