From 9f66fbaa51dcda5e3253e70582e3f26e1116950b Mon Sep 17 00:00:00 2001 From: Brechtpd Date: Wed, 10 Apr 2024 19:28:49 +0200 Subject: [PATCH] fix fraction printing for memory stats --- host/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/src/main.rs b/host/src/main.rs index 15f9f918..83fc2559 100644 --- a/host/src/main.rs +++ b/host/src/main.rs @@ -163,7 +163,7 @@ mod memory { pub(crate) fn print_stats(title: &str) { let max_memory = get_max_allocated(); println!( - "{}{}.{} MB", + "{}{}.{:06} MB", title, max_memory / 1000000, max_memory % 1000000