Skip to content

Commit c281d4a

Browse files
committed
fix: missing property length, renamed to bytes
Signed-off-by: Neko Ayaka <[email protected]>
1 parent 273a115 commit c281d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/Scan.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ function now() {
311311
<div v-if="k" relative h-2 max-w-150 rounded-lg bg-black:75 text-white font-mono shadow>
312312
<div
313313
absolute inset-y-0 h-full bg-green border="~ green4 rounded-lg"
314-
:style="{ width: `${decodedBlocks === k ? 100 : (Math.min(1, receivedBytes / length * 0.66) * 100).toFixed(2)}%` }"
314+
:style="{ width: `${decodedBlocks === k ? 100 : (Math.min(1, receivedBytes / bytes * 0.66) * 100).toFixed(2)}%` }"
315315
/>
316316
</div>
317317

0 commit comments

Comments
 (0)