From b9ec028bfa83503a7bf49b29b822e6359d71bca1 Mon Sep 17 00:00:00 2001 From: jacob Date: Sat, 8 Feb 2025 09:38:32 -0600 Subject: [PATCH] reduce host msg timeout to 0.1 --- src/host.c | 2 +- src/user.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/host.c b/src/host.c index 2ae02a10..6cb545a8 100644 --- a/src/host.c +++ b/src/host.c @@ -816,7 +816,7 @@ void host_update(struct host *host) /* Release timed out unreliable msg buffers */ { /* TODO: Configurable timeout */ - i64 timeout_ns = NS_FROM_SECONDS(1); + i64 timeout_ns = NS_FROM_SECONDS(0.1); struct host_msg_assembler *ma = channel->least_recent_msg_assembler; while (ma) { struct host_msg_assembler *next = ma->more_recent; diff --git a/src/user.c b/src/user.c index 7504f9da..4cea8b1d 100644 --- a/src/user.c +++ b/src/user.c @@ -1626,10 +1626,10 @@ INTERNAL void user_update(void) draw_text(G.ui_cmd_buffer, font, pos, string_format(temp.arena, LIT("Client data sent: %F mbit/s"), FMT_FLOAT_P((f64)G.client_bytes_sent.last_second * 8 / 1024 / 1024, 2))); pos.y += spacing; - draw_text(G.ui_cmd_buffer, font, pos, string_format(temp.arena, LIT("Memory committed: %F MiB"), FMT_FLOAT_P((f64)atomic_u64_eval(&app_statistics()->memory_committed) / 1024 / 1024, 2))); + draw_text(G.ui_cmd_buffer, font, pos, string_format(temp.arena, LIT("Memory usage: %F MiB"), FMT_FLOAT_P((f64)atomic_u64_eval(&app_statistics()->memory_committed) / 1024 / 1024, 2))); pos.y += spacing; - draw_text(G.ui_cmd_buffer, font, pos, string_format(temp.arena, LIT("Memory reserved: %F TiB"), FMT_FLOAT_P((f64)atomic_u64_eval(&app_statistics()->memory_reserved) / 1024 / 1024 / 1024 / 1024, 2))); + draw_text(G.ui_cmd_buffer, font, pos, string_format(temp.arena, LIT("Virtual memory usage: %F TiB"), FMT_FLOAT_P((f64)atomic_u64_eval(&app_statistics()->memory_reserved) / 1024 / 1024 / 1024 / 1024, 2))); pos.y += spacing; #if 0