From b112da5b9825262b3b779bd699a4cf4bca8b6d01 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Wed, 26 Aug 2026 17:58:15 -0400 Subject: Rough cmc UI tweaking Signed-off-by: Andrew Opalach --- src/fruits/cmsrv/ui.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/fruits/cmsrv/ui.c') diff --git a/src/fruits/cmsrv/ui.c b/src/fruits/cmsrv/ui.c index afbee58..2f1bf1d 100644 --- a/src/fruits/cmsrv/ui.c +++ b/src/fruits/cmsrv/ui.c @@ -207,16 +207,13 @@ static void render_nodes(struct cmsrv_ui *ui) u32 max_height = ncplane_dim_y(n); (void)max_height; - char strbuf[16]; - struct lia_node *node; al_array_foreach(ui->server->data.server.nodes, i, node) { - al_snprintf(strbuf, sizeof(strbuf), "%hu", node->id); - ncplane_putnstr_yx(n, i, 0, max_width, strbuf); + ncplane_putnstr_yx(n, i, 0, max_width, al_print_u32(node->id)->data); struct lia_node_connection *conn; al_array_foreach(node->connections, j, conn) { - al_snprintf(strbuf, sizeof(strbuf), "%u", conn->pool.ready.count); - ncplane_putnstr_yx(n, i + j + 1, 2, max_width, strbuf); + u32 ready = conn->pool.ready.count; + ncplane_putnstr_yx(n, i + j + 1, 2, max_width, al_print_u32(ready)->data); } } } -- cgit v1.2.3-101-g0448