summaryrefslogtreecommitdiff
path: root/src/fruits/cmsrv/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fruits/cmsrv/ui.c')
-rw-r--r--src/fruits/cmsrv/ui.c9
1 files changed, 3 insertions, 6 deletions
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);
}
}
}