]> zoso.dev Git - libnemo.git/commitdiff
Tweak logging.
authorChris Duncan <chris@zoso.dev>
Sat, 4 Jan 2025 07:45:08 +0000 (23:45 -0800)
committerChris Duncan <chris@zoso.dev>
Sat, 4 Jan 2025 07:45:08 +0000 (23:45 -0800)
src/lib/workers/powgpu.ts

index 3ecadc6d2897c099f2366c123d035ea3302bd011..517d1a1630bd224d69375dad4d8435a79abd7869 100644 (file)
@@ -360,10 +360,9 @@ export class PowGpu extends WorkerInterface {
                const nonce = data.getBigUint64(0, true)
                const found = !!data.getUint32(8)
                console.log(new Uint32Array(data.buffer))
+               console.log(`nonce: ${nonce}`)
                PowGpu.#cpuBuffer.unmap()
 
-               console.log(`found: ${found}`)
-               console.log(`nonce: ${nonce}`)
                if (found) {
                        const hex = nonce.toString(16).padStart(16, '0')
                        typeof callback === 'function' && callback(hex)