From c039d3919ab828af113e17c5e4338f4416df2b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lloren=C3=A7?= Date: Tue, 15 Oct 2024 12:17:39 +0200 Subject: [PATCH] fix type --- src/internet_identity/src/http/metrics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internet_identity/src/http/metrics.rs b/src/internet_identity/src/http/metrics.rs index d923565488..3b166e242d 100644 --- a/src/internet_identity/src/http/metrics.rs +++ b/src/internet_identity/src/http/metrics.rs @@ -103,7 +103,7 @@ fn encode_metrics(w: &mut MetricsEncoder>) -> std::io::Result<()> { #[cfg(target_arch = "wasm32")] w.encode_gauge( "internet_identity_heap_memory_bytes", - (core::arch::wasm32::memory_size::<0>() * WASM_PAGE_SIZE_IN_BYTES) as f64, + (core::arch::wasm32::memory_size::<0>() as u64 * WASM_PAGE_SIZE_IN_BYTES) as f64, "Size of the heap memory allocated by this canister.", )?; w.encode_gauge(