Skip to content

Commit 07145a9

Browse files
committed
getting the math right...
1 parent 7e5b698 commit 07145a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/compute_size_manual.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
js_size=$(stat --format="%s" build-with-port/index.js)
5353
wasm_size=$(stat --format="%s" build-with-port/index.wasm)
5454
total_size=$((js_size + wasm_size))
55-
delta=$(echo "scale=2; $js_size / $TOTAL_SIZE_LIBRARY_GLFW" | bc)
55+
delta=$(echo "scale=2; $total_size / $TOTAL_SIZE_LIBRARY_GLFW" | bc)
5656
echo "js:$js_size, wasm:$wasm_size, total: $total_size | ${delta}x"
5757
5858
- name: Compiling with contrib.glfw3 (small)
@@ -67,5 +67,5 @@ jobs:
6767
wasm_size=$(stat --format="%s" build-with-port-small/index.wasm)
6868
total_size=$((js_size + wasm_size))
6969
echo "js:$js_size, wasm:$wasm_size, total: $total_size"
70-
delta=$(echo "scale=2; $js_size / $TOTAL_SIZE_LIBRARY_GLFW" | bc)
70+
delta=$(echo "scale=2; $total_size / $TOTAL_SIZE_LIBRARY_GLFW" | bc)
7171
echo "js:$js_size, wasm:$wasm_size, total: $total_size | ${delta}x"

0 commit comments

Comments
 (0)