From 69c29e5b319f9ab69a61c33bf3a6729db3a85afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C5=8Dshin?= Date: Fri, 11 Feb 2022 00:00:47 -0800 Subject: [PATCH] conn: u3i_chub in ames stats --- pkg/urbit/vere/io/conn.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pkg/urbit/vere/io/conn.c b/pkg/urbit/vere/io/conn.c index 9f1f5585d..15583fcc1 100644 --- a/pkg/urbit/vere/io/conn.c +++ b/pkg/urbit/vere/io/conn.c @@ -511,17 +511,20 @@ _conn_read_peel(u3_conn* con_u, u3_noun dat) res = u3nt( u3_nul, u3_nul, u3i_list( - u3nc(u3i_string("ames-drop-count"), u3M.sat_u->dop_d), - u3nc(u3i_string("ames-crash-count"), u3M.sat_u->fal_d), + u3nc(u3i_string("ames-drop-count"), u3i_chub(u3M.sat_u->dop_d)), + u3nc(u3i_string("ames-crash-count"), u3i_chub(u3M.sat_u->fal_d)), u3nc(u3i_string("ames-successive-scry-failures"), - u3M.sat_u->saw_d), - u3nc(u3i_string("ames-failed-headers"), u3M.sat_u->hed_d), - u3nc(u3i_string("ames-version-mismatches"), u3M.sat_u->vet_d), - u3nc(u3i_string("ames-invalid-mugs"), u3M.sat_u->mut_d), - u3nc(u3i_string("ames-failed-bodies"), u3M.sat_u->bod_d), - u3nc(u3i_string("ames-forward-queue-size"), u3M.sat_u->foq_d), - u3nc(u3i_string("ames-forwards"), u3M.sat_u->fow_d), - u3nc(u3i_string("ames-forwards-dropped"), u3M.sat_u->fod_d), + u3i_chub(u3M.sat_u->saw_d)), + u3nc(u3i_string("ames-failed-headers"), u3i_chub(u3M.sat_u->hed_d)), + u3nc(u3i_string("ames-version-mismatches"), + u3i_chub(u3M.sat_u->vet_d)), + u3nc(u3i_string("ames-invalid-mugs"), u3i_chub(u3M.sat_u->mut_d)), + u3nc(u3i_string("ames-failed-bodies"), u3i_chub(u3M.sat_u->bod_d)), + u3nc(u3i_string("ames-forward-queue-size"), + u3i_chub(u3M.sat_u->foq_d)), + u3nc(u3i_string("ames-forwards"), u3i_chub(u3M.sat_u->fow_d)), + u3nc(u3i_string("ames-forwards-dropped"), + u3i_chub(u3M.sat_u->fod_d)), // TODO http/other stats, ames cached lanes count // u3_none));