diff --git a/cli/src/main.rs b/cli/src/main.rs index 883966b..f8c8cc1 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -147,7 +147,7 @@ async fn main() { let end = Instant::now(); timings.push(end - start); - print!("\r{:.2}%", ((i - warmup) as f32 / n as f32) * 100.0); + print!("\r{:.2}%", (i as f32 / (n + warmup) as f32) * 100.0); let _ = std::io::stdout().flush(); } timings.drain(..=(warmup as usize)); diff --git a/wasm/Cargo.toml b/wasm/Cargo.toml index 5851740..a94632e 100644 --- a/wasm/Cargo.toml +++ b/wasm/Cargo.toml @@ -10,5 +10,5 @@ crate-type = ["cdylib", "rlib"] [dependencies] wasm-bindgen = "0.2.84" wasm-bindgen-futures = "0.4.39" -console_error_panic_hook = { version = "0.1.7", optional = true } +console_error_panic_hook = { version = "0.1.7" } advent = { path = "../lib" } \ No newline at end of file diff --git a/wasm/index.html b/wasm/index.html index 71cb911..0d38d19 100644 --- a/wasm/index.html +++ b/wasm/index.html @@ -1,12 +1,49 @@
- + + + + +Day 1:
+Day 2:
+Day 3:
+Day 4:
+Day 5:
+Day 6:
+Day 7:
+Day 8:
+Day 9:
+Day 10:
+Day 11:
+