reduce host msg timeout to 0.1
This commit is contained in:
parent
ca664ac291
commit
b9ec028bfa
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user